; LLVM IR from fritzsedlazeck/SURVIVOR :: src/simulator (SV_Simulator)

; 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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = type { %"struct.std::_Vector_base<insertions, std::allocator<insertions>>::_Vector_impl" }
%"struct.std::_Vector_base<insertions, std::allocator<insertions>>::_Vector_impl" = type { %"struct.std::_Vector_base<insertions, std::allocator<insertions>>::_Vector_impl_data" }
%"struct.std::_Vector_base<insertions, std::allocator<insertions>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.insertions = type { %struct.position, %"class.std::__cxx11::basic_string" }
%struct.position = type { %"class.std::__cxx11::basic_string", i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<struct_var, std::allocator<struct_var>>::_Vector_impl" }
%"struct.std::_Vector_base<struct_var, std::allocator<struct_var>>::_Vector_impl" = type { %"struct.std::_Vector_base<struct_var, std::allocator<struct_var>>::_Vector_impl_data" }
%"struct.std::_Vector_base<struct_var, std::allocator<struct_var>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.struct_var = type { i32, %struct.position, %struct.position, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48), 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_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32), 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 #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef) #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZN8positionaSERKS_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10struct_varD2Ev(ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #5 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8rand_seqB5cxx11i(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) #1

; Function Attrs: nounwind
declare void @srand(i32 noundef) #6

; Function Attrs: nounwind
declare i64 @time(ptr noundef) #6

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10insertionsC2Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10insertionsD2Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #5 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19apply_mutations_refRSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEERSt6vectorI10struct_varSaISF_EE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::vector.17", align 8
  %6 = alloca %struct.insertions, align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::__cxx11::basic_string", align 8
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::vector", align 8
  %11 = alloca i64, align 8
  %12 = alloca %struct.struct_var, align 8
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca i64, align 8
  %16 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %17 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %18 = alloca %"class.std::__cxx11::basic_string", align 8
  %19 = alloca %"class.std::__cxx11::basic_string", align 8
  %20 = alloca %"class.std::__cxx11::basic_string", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %24 = alloca i32, align 4
  %25 = alloca %"class.std::__cxx11::basic_string", align 8
  %26 = alloca %"class.std::__cxx11::basic_string", align 8
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %30 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.9)
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %30, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %32 = call i64 @time(ptr noundef null) #7
  %33 = trunc i64 %32 to i32
  call void @srand(i32 noundef %33) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %5) #7
  call void @_ZNSt6vectorI10insertionsSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.start.p0(i64 72, ptr %6) #7
  call void @_ZN10insertionsC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %6) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %8) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #7
  call void @_ZNSt6vectorI10struct_varSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  store i64 0, ptr %11, align 8, !tbaa !9
  br label %34

34:                                               ; preds = %46, %2
  %35 = load i64, ptr %11, align 8, !tbaa !9
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = call noundef i64 @_ZNKSt6vectorI10struct_varSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #7
  %38 = icmp ult i64 %35, %37
  br i1 %38, label %40, label %39

39:                                               ; preds = %34
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %58

40:                                               ; preds = %34
  %41 = load ptr, ptr %4, align 8, !tbaa !5
  %42 = load i64, ptr %11, align 8, !tbaa !9
  %43 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %42) #7
  invoke void @_ZN10struct_varC2ERKS_(ptr noundef nonnull align 8 dereferenceable(160) %12, ptr noundef nonnull align 8 dereferenceable(160) %43)
          to label %44 unwind label %49

44:                                               ; preds = %40
  invoke void @_Z12store_sortedRSt6vectorI10struct_varSaIS0_EES0_(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef %12)
          to label %45 unwind label %53

45:                                               ; preds = %44
  call void @_ZN10struct_varD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %12) #7
  br label %46

46:                                               ; preds = %45
  %47 = load i64, ptr %11, align 8, !tbaa !9
  %48 = add i64 %47, 1
  store i64 %48, ptr %11, align 8, !tbaa !9
  br label %34, !llvm.loop !11

49:                                               ; preds = %40
  %50 = landingpad { ptr, i32 }
          cleanup
  %51 = extractvalue { ptr, i32 } %50, 0
  store ptr %51, ptr %13, align 8
  %52 = extractvalue { ptr, i32 } %50, 1
  store i32 %52, ptr %14, align 4
  br label %57

53:                                               ; preds = %44
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %13, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %14, align 4
  call void @_ZN10struct_varD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %12) #7
  br label %57

57:                                               ; preds = %53, %49
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  br label %426

58:                                               ; preds = %39
  %59 = load ptr, ptr %4, align 8, !tbaa !5
  %60 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI10struct_varSaIS0_EEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %59, ptr noundef nonnull align 8 dereferenceable(24) %10)
          to label %61 unwind label %68

61:                                               ; preds = %58
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  store i64 0, ptr %15, align 8, !tbaa !9
  br label %62

62:                                               ; preds = %98, %61
  %63 = load i64, ptr %15, align 8, !tbaa !9
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = call noundef i64 @_ZNKSt6vectorI10struct_varSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %64) #7
  %66 = icmp ult i64 %63, %65
  br i1 %66, label %72, label %67

67:                                               ; preds = %62
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %101

68:                                               ; preds = %58
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %13, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %14, align 4
  br label %426

72:                                               ; preds = %62
  %73 = load ptr, ptr %4, align 8, !tbaa !5
  %74 = load i64, ptr %15, align 8, !tbaa !9
  %75 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %73, i64 noundef %74) #7
  %76 = getelementptr inbounds %struct.struct_var, ptr %75, i32 0, i32 0
  %77 = load i32, ptr %76, align 8, !tbaa !13
  %78 = icmp eq i32 %77, 4
  br i1 %78, label %79, label %84

79:                                               ; preds = %72
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = load i64, ptr %15, align 8, !tbaa !9
  %82 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %81) #7
  %83 = getelementptr inbounds %struct.struct_var, ptr %82, i32 0, i32 0
  store i32 1, ptr %83, align 8, !tbaa !13
  br label %97

84:                                               ; preds = %72
  %85 = load ptr, ptr %4, align 8, !tbaa !5
  %86 = load i64, ptr %15, align 8, !tbaa !9
  %87 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %85, i64 noundef %86) #7
  %88 = getelementptr inbounds %struct.struct_var, ptr %87, i32 0, i32 0
  %89 = load i32, ptr %88, align 8, !tbaa !13
  %90 = icmp eq i32 %89, 1
  br i1 %90, label %91, label %96

91:                                               ; preds = %84
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = load i64, ptr %15, align 8, !tbaa !9
  %94 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef %93) #7
  %95 = getelementptr inbounds %struct.struct_var, ptr %94, i32 0, i32 0
  store i32 4, ptr %95, align 8, !tbaa !13
  br label %96

96:                                               ; preds = %91, %84
  br label %97

97:                                               ; preds = %96, %79
  br label %98

98:                                               ; preds = %97
  %99 = load i64, ptr %15, align 8, !tbaa !9
  %100 = add i64 %99, 1
  store i64 %100, ptr %15, align 8, !tbaa !9
  br label %62, !llvm.loop !20

101:                                              ; preds = %67
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %102 = load ptr, ptr %4, align 8, !tbaa !5
  %103 = call ptr @_ZNSt6vectorI10struct_varSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %102) #7
  %104 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %16, i32 0, i32 0
  store ptr %103, ptr %104, align 8
  br label %105

105:                                              ; preds = %269, %101
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %106 = load ptr, ptr %4, align 8, !tbaa !5
  %107 = call ptr @_ZNSt6vectorI10struct_varSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %106) #7
  %108 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %17, i32 0, i32 0
  store ptr %107, ptr %108, align 8
  %109 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP10struct_varSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %16, ptr noundef nonnull align 8 dereferenceable(8) %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br i1 %109, label %111, label %110

110:                                              ; preds = %105
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %274

111:                                              ; preds = %105
  %112 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.10)
          to label %113 unwind label %139

113:                                              ; preds = %111
  %114 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %115 = getelementptr inbounds %struct.struct_var, ptr %114, i32 0, i32 1
  %116 = getelementptr inbounds %struct.position, ptr %115, i32 0, i32 0
  %117 = 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) %112, ptr noundef nonnull align 8 dereferenceable(32) %116)
          to label %118 unwind label %139

118:                                              ; preds = %113
  %119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef @.str.4)
          to label %120 unwind label %139

120:                                              ; preds = %118
  %121 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %122 = getelementptr inbounds %struct.struct_var, ptr %121, i32 0, i32 1
  %123 = getelementptr inbounds %struct.position, ptr %122, i32 0, i32 1
  %124 = load i32, ptr %123, align 8, !tbaa !21
  %125 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %119, i32 noundef %124)
          to label %126 unwind label %139

126:                                              ; preds = %120
  %127 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %125, ptr noundef @.str.4)
          to label %128 unwind label %139

128:                                              ; preds = %126
  %129 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %130 = getelementptr inbounds %struct.struct_var, ptr %129, i32 0, i32 0
  %131 = load i32, ptr %130, align 8, !tbaa !13
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %127, i32 noundef %131)
          to label %133 unwind label %139

133:                                              ; preds = %128
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %135 unwind label %139

135:                                              ; preds = %133
  call void @llvm.lifetime.start.p0(i64 32, ptr %18) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  %136 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %137 = getelementptr inbounds %struct.struct_var, ptr %136, i32 0, i32 0
  %138 = load i32, ptr %137, align 8, !tbaa !13
  switch i32 %138, label %267 [
    i32 1, label %143
    i32 2, label %171
    i32 4, label %227
  ]

139:                                              ; preds = %133, %128, %126, %120, %118, %113, %111
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %13, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %14, align 4
  br label %273

143:                                              ; preds = %135
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %146 = getelementptr inbounds %struct.struct_var, ptr %145, i32 0, i32 1
  %147 = getelementptr inbounds %struct.position, ptr %146, i32 0, i32 0
  %148 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %144, ptr noundef nonnull align 8 dereferenceable(32) %147)
          to label %149 unwind label %167

149:                                              ; preds = %143
  %150 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %151 = getelementptr inbounds %struct.struct_var, ptr %150, i32 0, i32 1
  %152 = getelementptr inbounds %struct.position, ptr %151, i32 0, i32 1
  %153 = load i32, ptr %152, align 8, !tbaa !21
  %154 = sext i32 %153 to i64
  %155 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %156 = getelementptr inbounds %struct.struct_var, ptr %155, i32 0, i32 1
  %157 = getelementptr inbounds %struct.position, ptr %156, i32 0, i32 2
  %158 = load i32, ptr %157, align 4, !tbaa !22
  %159 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %160 = getelementptr inbounds %struct.struct_var, ptr %159, i32 0, i32 1
  %161 = getelementptr inbounds %struct.position, ptr %160, i32 0, i32 1
  %162 = load i32, ptr %161, align 8, !tbaa !21
  %163 = sub nsw i32 %158, %162
  %164 = sext i32 %163 to i64
  %165 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm(ptr noundef nonnull align 8 dereferenceable(32) %148, i64 noundef %154, i64 noundef %164)
          to label %166 unwind label %167

166:                                              ; preds = %149
  br label %268

167:                                              ; preds = %255, %250, %245, %237, %215, %209, %201, %195, %193, %149, %143
  %168 = landingpad { ptr, i32 }
          cleanup
  %169 = extractvalue { ptr, i32 } %168, 0
  store ptr %169, ptr %13, align 8
  %170 = extractvalue { ptr, i32 } %168, 1
  store i32 %170, ptr %14, align 4
  br label %272

171:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 32, ptr %19) #7
  %172 = load ptr, ptr %3, align 8, !tbaa !5
  %173 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %174 = getelementptr inbounds %struct.struct_var, ptr %173, i32 0, i32 1
  %175 = getelementptr inbounds %struct.position, ptr %174, i32 0, i32 0
  %176 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %172, ptr noundef nonnull align 8 dereferenceable(32) %175)
          to label %177 unwind label %223

177:                                              ; preds = %171
  %178 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %179 = getelementptr inbounds %struct.struct_var, ptr %178, i32 0, i32 1
  %180 = getelementptr inbounds %struct.position, ptr %179, i32 0, i32 1
  %181 = load i32, ptr %180, align 8, !tbaa !21
  %182 = sext i32 %181 to i64
  %183 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %184 = getelementptr inbounds %struct.struct_var, ptr %183, i32 0, i32 1
  %185 = getelementptr inbounds %struct.position, ptr %184, i32 0, i32 2
  %186 = load i32, ptr %185, align 4, !tbaa !22
  %187 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %188 = getelementptr inbounds %struct.struct_var, ptr %187, i32 0, i32 1
  %189 = getelementptr inbounds %struct.position, ptr %188, i32 0, i32 1
  %190 = load i32, ptr %189, align 8, !tbaa !21
  %191 = sub nsw i32 %186, %190
  %192 = sext i32 %191 to i64
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %19, ptr noundef nonnull align 8 dereferenceable(32) %176, i64 noundef %182, i64 noundef %192)
          to label %193 unwind label %223

193:                                              ; preds = %177
  %194 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %18, ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %19) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #7
  invoke void @_Z6invertRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %195 unwind label %167

195:                                              ; preds = %193
  %196 = load ptr, ptr %3, align 8, !tbaa !5
  %197 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %198 = getelementptr inbounds %struct.struct_var, ptr %197, i32 0, i32 1
  %199 = getelementptr inbounds %struct.position, ptr %198, i32 0, i32 0
  %200 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %196, ptr noundef nonnull align 8 dereferenceable(32) %199)
          to label %201 unwind label %167

201:                                              ; preds = %195
  %202 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %203 = getelementptr inbounds %struct.struct_var, ptr %202, i32 0, i32 1
  %204 = getelementptr inbounds %struct.position, ptr %203, i32 0, i32 1
  %205 = load i32, ptr %204, align 8, !tbaa !21
  %206 = sext i32 %205 to i64
  %207 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  %208 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm(ptr noundef nonnull align 8 dereferenceable(32) %200, i64 noundef %206, i64 noundef %207)
          to label %209 unwind label %167

209:                                              ; preds = %201
  %210 = load ptr, ptr %3, align 8, !tbaa !5
  %211 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %212 = getelementptr inbounds %struct.struct_var, ptr %211, i32 0, i32 1
  %213 = getelementptr inbounds %struct.position, ptr %212, i32 0, i32 0
  %214 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %210, ptr noundef nonnull align 8 dereferenceable(32) %213)
          to label %215 unwind label %167

215:                                              ; preds = %209
  %216 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %217 = getelementptr inbounds %struct.struct_var, ptr %216, i32 0, i32 1
  %218 = getelementptr inbounds %struct.position, ptr %217, i32 0, i32 1
  %219 = load i32, ptr %218, align 8, !tbaa !21
  %220 = sext i32 %219 to i64
  %221 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6insertEmRKS4_(ptr noundef nonnull align 8 dereferenceable(32) %214, i64 noundef %220, ptr noundef nonnull align 8 dereferenceable(32) %18)
          to label %222 unwind label %167

222:                                              ; preds = %215
  br label %268

223:                                              ; preds = %177, %171
  %224 = landingpad { ptr, i32 }
          cleanup
  %225 = extractvalue { ptr, i32 } %224, 0
  store ptr %225, ptr %13, align 8
  %226 = extractvalue { ptr, i32 } %224, 1
  store i32 %226, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %19) #7
  br label %272

227:                                              ; preds = %135
  call void @llvm.lifetime.start.p0(i64 32, ptr %20) #7
  %228 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %229 = getelementptr inbounds %struct.struct_var, ptr %228, i32 0, i32 2
  %230 = getelementptr inbounds %struct.position, ptr %229, i32 0, i32 2
  %231 = load i32, ptr %230, align 4, !tbaa !23
  %232 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %233 = getelementptr inbounds %struct.struct_var, ptr %232, i32 0, i32 2
  %234 = getelementptr inbounds %struct.position, ptr %233, i32 0, i32 1
  %235 = load i32, ptr %234, align 8, !tbaa !24
  %236 = sub nsw i32 %231, %235
  invoke void @_Z8rand_seqB5cxx11i(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %20, i32 noundef %236)
          to label %237 unwind label %263

237:                                              ; preds = %227
  %238 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %239 = getelementptr inbounds %struct.struct_var, ptr %238, i32 0, i32 3
  %240 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %239, ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %20) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #7
  %241 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %242 = getelementptr inbounds %struct.struct_var, ptr %241, i32 0, i32 3
  %243 = getelementptr inbounds %struct.insertions, ptr %6, i32 0, i32 1
  %244 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %243, ptr noundef nonnull align 8 dereferenceable(32) %242)
          to label %245 unwind label %167

245:                                              ; preds = %237
  %246 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16) #7
  %247 = getelementptr inbounds %struct.struct_var, ptr %246, i32 0, i32 2
  %248 = getelementptr inbounds %struct.insertions, ptr %6, i32 0, i32 0
  %249 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN8positionaSERKS_(ptr noundef nonnull align 8 dereferenceable(40) %248, ptr noundef nonnull align 8 dereferenceable(40) %247)
          to label %250 unwind label %167

250:                                              ; preds = %245
  %251 = load ptr, ptr %3, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.insertions, ptr %6, i32 0, i32 0
  %253 = getelementptr inbounds %struct.position, ptr %252, i32 0, i32 0
  %254 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %251, ptr noundef nonnull align 8 dereferenceable(32) %253)
          to label %255 unwind label %167

255:                                              ; preds = %250
  %256 = getelementptr inbounds %struct.insertions, ptr %6, i32 0, i32 0
  %257 = getelementptr inbounds %struct.position, ptr %256, i32 0, i32 1
  %258 = load i32, ptr %257, align 8, !tbaa !25
  %259 = sext i32 %258 to i64
  %260 = getelementptr inbounds %struct.insertions, ptr %6, i32 0, i32 1
  %261 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6insertEmRKS4_(ptr noundef nonnull align 8 dereferenceable(32) %254, i64 noundef %259, ptr noundef nonnull align 8 dereferenceable(32) %260)
          to label %262 unwind label %167

262:                                              ; preds = %255
  br label %268

263:                                              ; preds = %227
  %264 = landingpad { ptr, i32 }
          cleanup
  %265 = extractvalue { ptr, i32 } %264, 0
  store ptr %265, ptr %13, align 8
  %266 = extractvalue { ptr, i32 } %264, 1
  store i32 %266, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %20) #7
  br label %272

267:                                              ; preds = %135
  br label %268

268:                                              ; preds = %267, %262, %222, %166
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #7
  br label %269

269:                                              ; preds = %268
  %270 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %16, i32 noundef 0) #7
  %271 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %21, i32 0, i32 0
  store ptr %270, ptr %271, align 8
  br label %105, !llvm.loop !27

272:                                              ; preds = %263, %223, %167
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %18) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %18) #7
  br label %273

273:                                              ; preds = %272, %139
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %426

274:                                              ; preds = %110
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %275 = load ptr, ptr %4, align 8, !tbaa !5
  %276 = call ptr @_ZNSt6vectorI10struct_varSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %275) #7
  %277 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %22, i32 0, i32 0
  store ptr %276, ptr %277, align 8
  br label %278

278:                                              ; preds = %421, %274
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  %279 = load ptr, ptr %4, align 8, !tbaa !5
  %280 = call ptr @_ZNSt6vectorI10struct_varSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %279) #7
  %281 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %23, i32 0, i32 0
  store ptr %280, ptr %281, align 8
  %282 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP10struct_varSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %22, ptr noundef nonnull align 8 dereferenceable(8) %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  br i1 %282, label %284, label %283

283:                                              ; preds = %278
  store i32 12, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %425

284:                                              ; preds = %278
  %285 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %286 = getelementptr inbounds %struct.struct_var, ptr %285, i32 0, i32 0
  %287 = load i32, ptr %286, align 8, !tbaa !13
  %288 = icmp eq i32 %287, 3
  br i1 %288, label %289, label %420

289:                                              ; preds = %284
  call void @llvm.lifetime.start.p0(i64 32, ptr %25) #7
  %290 = load ptr, ptr %3, align 8, !tbaa !5
  %291 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %292 = getelementptr inbounds %struct.struct_var, ptr %291, i32 0, i32 1
  %293 = getelementptr inbounds %struct.position, ptr %292, i32 0, i32 0
  %294 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %290, ptr noundef nonnull align 8 dereferenceable(32) %293)
          to label %295 unwind label %348

295:                                              ; preds = %289
  %296 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %297 = getelementptr inbounds %struct.struct_var, ptr %296, i32 0, i32 1
  %298 = getelementptr inbounds %struct.position, ptr %297, i32 0, i32 1
  %299 = load i32, ptr %298, align 8, !tbaa !21
  %300 = sext i32 %299 to i64
  %301 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %302 = getelementptr inbounds %struct.struct_var, ptr %301, i32 0, i32 1
  %303 = getelementptr inbounds %struct.position, ptr %302, i32 0, i32 2
  %304 = load i32, ptr %303, align 4, !tbaa !22
  %305 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %306 = getelementptr inbounds %struct.struct_var, ptr %305, i32 0, i32 1
  %307 = getelementptr inbounds %struct.position, ptr %306, i32 0, i32 1
  %308 = load i32, ptr %307, align 8, !tbaa !21
  %309 = sub nsw i32 %304, %308
  %310 = sext i32 %309 to i64
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %25, ptr noundef nonnull align 8 dereferenceable(32) %294, i64 noundef %300, i64 noundef %310)
          to label %311 unwind label %348

311:                                              ; preds = %295
  %312 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %25) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr %26) #7
  %313 = load ptr, ptr %3, align 8, !tbaa !5
  %314 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %315 = getelementptr inbounds %struct.struct_var, ptr %314, i32 0, i32 2
  %316 = getelementptr inbounds %struct.position, ptr %315, i32 0, i32 0
  %317 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %313, ptr noundef nonnull align 8 dereferenceable(32) %316)
          to label %318 unwind label %352

318:                                              ; preds = %311
  %319 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %320 = getelementptr inbounds %struct.struct_var, ptr %319, i32 0, i32 2
  %321 = getelementptr inbounds %struct.position, ptr %320, i32 0, i32 1
  %322 = load i32, ptr %321, align 8, !tbaa !24
  %323 = sext i32 %322 to i64
  %324 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %325 = getelementptr inbounds %struct.struct_var, ptr %324, i32 0, i32 2
  %326 = getelementptr inbounds %struct.position, ptr %325, i32 0, i32 2
  %327 = load i32, ptr %326, align 4, !tbaa !23
  %328 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %329 = getelementptr inbounds %struct.struct_var, ptr %328, i32 0, i32 2
  %330 = getelementptr inbounds %struct.position, ptr %329, i32 0, i32 1
  %331 = load i32, ptr %330, align 8, !tbaa !24
  %332 = sub nsw i32 %327, %331
  %333 = sext i32 %332 to i64
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %26, ptr noundef nonnull align 8 dereferenceable(32) %317, i64 noundef %323, i64 noundef %333)
          to label %334 unwind label %352

334:                                              ; preds = %318
  %335 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %8, ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %26) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #7
  store i32 0, ptr %9, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #7
  %336 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %337 = getelementptr inbounds %struct.struct_var, ptr %336, i32 0, i32 2
  %338 = getelementptr inbounds %struct.position, ptr %337, i32 0, i32 1
  %339 = load i32, ptr %338, align 8, !tbaa !24
  store i32 %339, ptr %27, align 4, !tbaa !28
  br label %340

340:                                              ; preds = %374, %334
  %341 = load i32, ptr %27, align 4, !tbaa !28
  %342 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %343 = getelementptr inbounds %struct.struct_var, ptr %342, i32 0, i32 2
  %344 = getelementptr inbounds %struct.position, ptr %343, i32 0, i32 2
  %345 = load i32, ptr %344, align 4, !tbaa !23
  %346 = icmp slt i32 %341, %345
  br i1 %346, label %356, label %347

347:                                              ; preds = %340
  store i32 15, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %381

348:                                              ; preds = %295, %289
  %349 = landingpad { ptr, i32 }
          cleanup
  %350 = extractvalue { ptr, i32 } %349, 0
  store ptr %350, ptr %13, align 8
  %351 = extractvalue { ptr, i32 } %349, 1
  store i32 %351, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %25) #7
  br label %424

352:                                              ; preds = %318, %311
  %353 = landingpad { ptr, i32 }
          cleanup
  %354 = extractvalue { ptr, i32 } %353, 0
  store ptr %354, ptr %13, align 8
  %355 = extractvalue { ptr, i32 } %353, 1
  store i32 %355, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %26) #7
  br label %424

356:                                              ; preds = %340
  %357 = load i32, ptr %9, align 4, !tbaa !28
  %358 = sext i32 %357 to i64
  %359 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %7, i64 noundef %358)
          to label %360 unwind label %377

360:                                              ; preds = %356
  %361 = load i8, ptr %359, align 1, !tbaa !29
  %362 = load ptr, ptr %3, align 8, !tbaa !5
  %363 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %364 = getelementptr inbounds %struct.struct_var, ptr %363, i32 0, i32 2
  %365 = getelementptr inbounds %struct.position, ptr %364, i32 0, i32 0
  %366 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %362, ptr noundef nonnull align 8 dereferenceable(32) %365)
          to label %367 unwind label %377

367:                                              ; preds = %360
  %368 = load i32, ptr %27, align 4, !tbaa !28
  %369 = sext i32 %368 to i64
  %370 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %366, i64 noundef %369)
          to label %371 unwind label %377

371:                                              ; preds = %367
  store i8 %361, ptr %370, align 1, !tbaa !29
  %372 = load i32, ptr %9, align 4, !tbaa !28
  %373 = add nsw i32 %372, 1
  store i32 %373, ptr %9, align 4, !tbaa !28
  br label %374

374:                                              ; preds = %371
  %375 = load i32, ptr %27, align 4, !tbaa !28
  %376 = add nsw i32 %375, 1
  store i32 %376, ptr %27, align 4, !tbaa !28
  br label %340, !llvm.loop !30

377:                                              ; preds = %367, %360, %356
  %378 = landingpad { ptr, i32 }
          cleanup
  %379 = extractvalue { ptr, i32 } %378, 0
  store ptr %379, ptr %13, align 8
  %380 = extractvalue { ptr, i32 } %378, 1
  store i32 %380, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #7
  br label %424

381:                                              ; preds = %347
  store i32 0, ptr %9, align 4, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #7
  %382 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %383 = getelementptr inbounds %struct.struct_var, ptr %382, i32 0, i32 1
  %384 = getelementptr inbounds %struct.position, ptr %383, i32 0, i32 1
  %385 = load i32, ptr %384, align 8, !tbaa !21
  store i32 %385, ptr %28, align 4, !tbaa !28
  br label %386

386:                                              ; preds = %412, %381
  %387 = load i32, ptr %28, align 4, !tbaa !28
  %388 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %389 = getelementptr inbounds %struct.struct_var, ptr %388, i32 0, i32 1
  %390 = getelementptr inbounds %struct.position, ptr %389, i32 0, i32 2
  %391 = load i32, ptr %390, align 4, !tbaa !22
  %392 = icmp slt i32 %387, %391
  br i1 %392, label %394, label %393

393:                                              ; preds = %386
  store i32 18, ptr %24, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %419

394:                                              ; preds = %386
  %395 = load i32, ptr %9, align 4, !tbaa !28
  %396 = sext i32 %395 to i64
  %397 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %8, i64 noundef %396)
          to label %398 unwind label %415

398:                                              ; preds = %394
  %399 = load i8, ptr %397, align 1, !tbaa !29
  %400 = load ptr, ptr %3, align 8, !tbaa !5
  %401 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %22) #7
  %402 = getelementptr inbounds %struct.struct_var, ptr %401, i32 0, i32 1
  %403 = getelementptr inbounds %struct.position, ptr %402, i32 0, i32 0
  %404 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %400, ptr noundef nonnull align 8 dereferenceable(32) %403)
          to label %405 unwind label %415

405:                                              ; preds = %398
  %406 = load i32, ptr %28, align 4, !tbaa !28
  %407 = sext i32 %406 to i64
  %408 = invoke noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %404, i64 noundef %407)
          to label %409 unwind label %415

409:                                              ; preds = %405
  store i8 %399, ptr %408, align 1, !tbaa !29
  %410 = load i32, ptr %9, align 4, !tbaa !28
  %411 = add nsw i32 %410, 1
  store i32 %411, ptr %9, align 4, !tbaa !28
  br label %412

412:                                              ; preds = %409
  %413 = load i32, ptr %28, align 4, !tbaa !28
  %414 = add nsw i32 %413, 1
  store i32 %414, ptr %28, align 4, !tbaa !28
  br label %386, !llvm.loop !31

415:                                              ; preds = %405, %398, %394
  %416 = landingpad { ptr, i32 }
          cleanup
  %417 = extractvalue { ptr, i32 } %416, 0
  store ptr %417, ptr %13, align 8
  %418 = extractvalue { ptr, i32 } %416, 1
  store i32 %418, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #7
  br label %424

419:                                              ; preds = %393
  br label %420

420:                                              ; preds = %419, %284
  br label %421

421:                                              ; preds = %420
  %422 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %22, i32 noundef 0) #7
  %423 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %29, i32 0, i32 0
  store ptr %422, ptr %423, align 8
  br label %278, !llvm.loop !32

424:                                              ; preds = %415, %377, %352, %348
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %426

425:                                              ; preds = %283
  call void @_ZNSt6vectorI10struct_varSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #7
  call void @_ZN10insertionsD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %6) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %6) #7
  call void @_ZNSt6vectorI10insertionsSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
  ret void

426:                                              ; preds = %424, %273, %68, %57
  call void @_ZNSt6vectorI10struct_varSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %8) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %8) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #7
  call void @_ZN10insertionsD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %6) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %6) #7
  call void @_ZNSt6vectorI10insertionsSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %5) #7
  br label %427

427:                                              ; preds = %426
  %428 = load ptr, ptr %13, align 8
  %429 = load i32, ptr %14, align 4
  %430 = insertvalue { ptr, i32 } poison, ptr %428, 0
  %431 = insertvalue { ptr, i32 } %430, i32 %429, 1
  resume { ptr, i32 } %431
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10struct_varC2ERKS_(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #0 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !15, i64 0}
!14 = !{!"_ZTS10struct_var", !15, i64 0, !16, i64 8, !16, i64 48, !17, i64 88, !17, i64 120, !19, i64 152, !15, i64 156}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTS8position", !17, i64 0, !15, i64 32, !15, i64 36}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !10, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = distinct !{!20, !12}
!21 = !{!14, !15, i64 40}
!22 = !{!14, !15, i64 44}
!23 = !{!14, !15, i64 84}
!24 = !{!14, !15, i64 80}
!25 = !{!26, !15, i64 32}
!26 = !{!"_ZTS10insertions", !16, i64 0, !17, i64 40}
!27 = distinct !{!27, !12}
!28 = !{!15, !15, i64 0}
!29 = !{!7, !7, i64 0}
!30 = distinct !{!30, !12}
!31 = distinct !{!31, !12}
!32 = distinct !{!32, !12}


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

%"class.std::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::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::vector.17" = type { %"struct.std::_Vector_base.18" }
%"struct.std::_Vector_base.18" = type { %"struct.std::_Vector_base<insertions, std::allocator<insertions>>::_Vector_impl" }
%"struct.std::_Vector_base<insertions, std::allocator<insertions>>::_Vector_impl" = type { %"struct.std::_Vector_base<insertions, std::allocator<insertions>>::_Vector_impl_data" }
%"struct.std::_Vector_base<insertions, std::allocator<insertions>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.insertions = type { %struct.position, %"class.std::__cxx11::basic_string" }
%struct.position = type { %"class.std::__cxx11::basic_string", i32, i32 }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<struct_var, std::allocator<struct_var>>::_Vector_impl" }
%"struct.std::_Vector_base<struct_var, std::allocator<struct_var>>::_Vector_impl" = type { %"struct.std::_Vector_base<struct_var, std::allocator<struct_var>>::_Vector_impl_data" }
%"struct.std::_Vector_base<struct_var, std::allocator<struct_var>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.struct_var = type { i32, %struct.position, %struct.position, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i8, i32 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.4 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [8 x i8], align 1

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

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

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

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

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

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

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48), 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_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32), 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 #3 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, ptr noundef nonnull align 8 dereferenceable(32), i64 noundef, i64 noundef) local_unnamed_addr #1 align 2

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(40) ptr @_ZN8positionaSERKS_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10struct_varD2Ev(ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #5 align 2

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

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

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_Z8rand_seqB5cxx11i(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8, i32 noundef) local_unnamed_addr #1

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #6

; Function Attrs: nounwind
declare i64 @time(ptr noundef) local_unnamed_addr #6

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10insertionsC2Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN10insertionsD2Ev(ptr noundef nonnull align 8 dereferenceable(72)) unnamed_addr #5 align 2

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_Z19apply_mutations_refRSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEERSt6vectorI10struct_varSaISF_EE(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(24) %1) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.17", align 8
  %4 = alloca %struct.insertions, align 8
  %5 = alloca %"class.std::__cxx11::basic_string", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::vector", align 8
  %8 = alloca %struct.struct_var, align 8
  %9 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %11 = alloca %"class.std::__cxx11::basic_string", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::__cxx11::basic_string", align 8
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.9)
  %19 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %18, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
  %20 = tail call i64 @time(ptr noundef null) #7
  %21 = trunc i64 %20 to i32
  tail call void @srand(i32 noundef %21) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %3) #7
  call void @_ZNSt6vectorI10insertionsSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #7
  call void @_ZN10insertionsC2Ev(ptr noundef nonnull align 8 dereferenceable(72) %4) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #7
  call void @_ZNSt6vectorI10struct_varSaIS0_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  %22 = call noundef i64 @_ZNKSt6vectorI10struct_varSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %.not = icmp eq i64 %22, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %27, %2
  %23 = invoke noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI10struct_varSaIS0_EEaSERKS2_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %7)
          to label %.preheader unwind label %40

.preheader:                                       ; preds = %._crit_edge
  %24 = call noundef i64 @_ZNKSt6vectorI10struct_varSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %.not79 = icmp eq i64 %24, 0
  br i1 %.not79, label %._crit_edge63, label %.lr.ph62

.lr.ph:                                           ; preds = %2, %27
  %.04460 = phi i64 [ %28, %27 ], [ 0, %2 ]
  %25 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.04460) #7
  invoke void @_ZN10struct_varC2ERKS_(ptr noundef nonnull align 8 dereferenceable(160) %8, ptr noundef nonnull align 8 dereferenceable(160) %25)
          to label %26 unwind label %31

26:                                               ; preds = %.lr.ph
  invoke void @_Z12store_sortedRSt6vectorI10struct_varSaIS0_EES0_(ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull %8)
          to label %27 unwind label %33

27:                                               ; preds = %26
  call void @_ZN10struct_varD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %8) #7
  %28 = add nuw i64 %.04460, 1
  %29 = call noundef i64 @_ZNKSt6vectorI10struct_varSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %30 = icmp ult i64 %28, %29
  br i1 %30, label %.lr.ph, label %._crit_edge, !llvm.loop !5

31:                                               ; preds = %.lr.ph
  %32 = landingpad { ptr, i32 }
          cleanup
  br label %270

33:                                               ; preds = %26
  %34 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN10struct_varD2Ev(ptr noundef nonnull align 8 dereferenceable(160) %8) #7
  br label %270

._crit_edge63:                                    ; preds = %52, %.preheader
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #7
  %35 = call ptr @_ZNSt6vectorI10struct_varSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %35, ptr %9, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %36 = call ptr @_ZNSt6vectorI10struct_varSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %36, ptr %10, align 8
  %37 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP10struct_varSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br i1 %37, label %.lr.ph65, label %._crit_edge66

.lr.ph65:                                         ; preds = %._crit_edge63
  %38 = getelementptr inbounds i8, ptr %4, i64 40
  %39 = getelementptr inbounds i8, ptr %4, i64 32
  br label %59

40:                                               ; preds = %._crit_edge
  %41 = landingpad { ptr, i32 }
          cleanup
  br label %270

.lr.ph62:                                         ; preds = %.preheader, %52
  %.04561 = phi i64 [ %53, %52 ], [ 0, %.preheader ]
  %42 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.04561) #7
  %43 = load i32, ptr %42, align 8, !tbaa !7
  %44 = icmp eq i32 %43, 4
  %45 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.04561) #7
  br i1 %44, label %46, label %47

46:                                               ; preds = %.lr.ph62
  store i32 1, ptr %45, align 8, !tbaa !7
  br label %52

47:                                               ; preds = %.lr.ph62
  %48 = load i32, ptr %45, align 8, !tbaa !7
  %49 = icmp eq i32 %48, 1
  br i1 %49, label %50, label %52

50:                                               ; preds = %47
  %51 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNSt6vectorI10struct_varSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %.04561) #7
  store i32 4, ptr %51, align 8, !tbaa !7
  br label %52

52:                                               ; preds = %46, %50, %47
  %53 = add nuw i64 %.04561, 1
  %54 = call noundef i64 @_ZNKSt6vectorI10struct_varSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  %55 = icmp ult i64 %53, %54
  br i1 %55, label %.lr.ph62, label %._crit_edge63, !llvm.loop !18

._crit_edge66:                                    ; preds = %172, %._crit_edge63
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #7
  %56 = call ptr @_ZNSt6vectorI10struct_varSaIS0_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %56, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %57 = call ptr @_ZNSt6vectorI10struct_varSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %57, ptr %15, align 8
  %58 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP10struct_varSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br i1 %58, label %.lr.ph77, label %._crit_edge78

59:                                               ; preds = %.lr.ph65, %172
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.10)
          to label %61 unwind label %83

61:                                               ; preds = %59
  %62 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %63 = getelementptr inbounds i8, ptr %62, i64 8
  %64 = 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) %60, ptr noundef nonnull align 8 dereferenceable(32) %63)
          to label %65 unwind label %83

65:                                               ; preds = %61
  %66 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %64, ptr noundef nonnull @.str.4)
          to label %67 unwind label %83

67:                                               ; preds = %65
  %68 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %69 = getelementptr inbounds i8, ptr %68, i64 40
  %70 = load i32, ptr %69, align 8, !tbaa !19
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %66, i32 noundef %70)
          to label %72 unwind label %83

72:                                               ; preds = %67
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %71, ptr noundef nonnull @.str.4)
          to label %74 unwind label %83

74:                                               ; preds = %72
  %75 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %76 = load i32, ptr %75, align 8, !tbaa !7
  %77 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %73, i32 noundef %76)
          to label %78 unwind label %83

78:                                               ; preds = %74
  %79 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %77, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %80 unwind label %83

80:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %11) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  %81 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %82 = load i32, ptr %81, align 8, !tbaa !7
  switch i32 %82, label %172 [
    i32 1, label %85
    i32 2, label %105
    i32 4, label %144
  ]

83:                                               ; preds = %78, %74, %72, %67, %65, %61, %59
  %84 = landingpad { ptr, i32 }
          cleanup
  br label %177

85:                                               ; preds = %80
  %86 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %87 = getelementptr inbounds i8, ptr %86, i64 8
  %88 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(32) %87)
          to label %89 unwind label %103

89:                                               ; preds = %85
  %90 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %91 = getelementptr inbounds i8, ptr %90, i64 40
  %92 = load i32, ptr %91, align 8, !tbaa !19
  %93 = sext i32 %92 to i64
  %94 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %95 = getelementptr inbounds i8, ptr %94, i64 44
  %96 = load i32, ptr %95, align 4, !tbaa !20
  %97 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %98 = getelementptr inbounds i8, ptr %97, i64 40
  %99 = load i32, ptr %98, align 8, !tbaa !19
  %100 = sub nsw i32 %96, %99
  %101 = sext i32 %100 to i64
  %102 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm(ptr noundef nonnull align 8 dereferenceable(32) %88, i64 noundef %93, i64 noundef %101)
          to label %172 unwind label %103

103:                                              ; preds = %.invoke, %163, %159, %152, %135, %128, %124, %122, %89, %85
  %104 = landingpad { ptr, i32 }
          cleanup
  br label %176

105:                                              ; preds = %80
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %12) #7
  %106 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %107 = getelementptr inbounds i8, ptr %106, i64 8
  %108 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(32) %107)
          to label %109 unwind label %142

109:                                              ; preds = %105
  %110 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %111 = getelementptr inbounds i8, ptr %110, i64 40
  %112 = load i32, ptr %111, align 8, !tbaa !19
  %113 = sext i32 %112 to i64
  %114 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %115 = getelementptr inbounds i8, ptr %114, i64 44
  %116 = load i32, ptr %115, align 4, !tbaa !20
  %117 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %118 = getelementptr inbounds i8, ptr %117, i64 40
  %119 = load i32, ptr %118, align 8, !tbaa !19
  %120 = sub nsw i32 %116, %119
  %121 = sext i32 %120 to i64
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %12, ptr noundef nonnull align 8 dereferenceable(32) %108, i64 noundef %113, i64 noundef %121)
          to label %122 unwind label %142

122:                                              ; preds = %109
  %123 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %11, ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  invoke void @_Z6invertRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %11)
          to label %124 unwind label %103

124:                                              ; preds = %122
  %125 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %126 = getelementptr inbounds i8, ptr %125, i64 8
  %127 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(32) %126)
          to label %128 unwind label %103

128:                                              ; preds = %124
  %129 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %130 = getelementptr inbounds i8, ptr %129, i64 40
  %131 = load i32, ptr %130, align 8, !tbaa !19
  %132 = sext i32 %131 to i64
  %133 = call noundef i64 @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4sizeEv(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  %134 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5eraseEmm(ptr noundef nonnull align 8 dereferenceable(32) %127, i64 noundef %132, i64 noundef %133)
          to label %135 unwind label %103

135:                                              ; preds = %128
  %136 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %137 = getelementptr inbounds i8, ptr %136, i64 8
  %138 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(32) %137)
          to label %139 unwind label %103

139:                                              ; preds = %135
  %140 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %141 = getelementptr inbounds i8, ptr %140, i64 40
  br label %.invoke

142:                                              ; preds = %109, %105
  %143 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %12) #7
  br label %176

144:                                              ; preds = %80
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %13) #7
  %145 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %146 = getelementptr inbounds i8, ptr %145, i64 84
  %147 = load i32, ptr %146, align 4, !tbaa !21
  %148 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %149 = getelementptr inbounds i8, ptr %148, i64 80
  %150 = load i32, ptr %149, align 8, !tbaa !22
  %151 = sub nsw i32 %147, %150
  invoke void @_Z8rand_seqB5cxx11i(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %13, i32 noundef %151)
          to label %152 unwind label %170

152:                                              ; preds = %144
  %153 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %154 = getelementptr inbounds i8, ptr %153, i64 88
  %155 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %154, ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #7
  %156 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %157 = getelementptr inbounds i8, ptr %156, i64 88
  %158 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %38, ptr noundef nonnull align 8 dereferenceable(32) %157)
          to label %159 unwind label %103

159:                                              ; preds = %152
  %160 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %9) #7
  %161 = getelementptr inbounds i8, ptr %160, i64 48
  %162 = invoke noundef nonnull align 8 dereferenceable(40) ptr @_ZN8positionaSERKS_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull align 8 dereferenceable(40) %161)
          to label %163 unwind label %103

163:                                              ; preds = %159
  %164 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %.invoke unwind label %103

.invoke:                                          ; preds = %163, %139
  %.sink92 = phi ptr [ %141, %139 ], [ %39, %163 ]
  %165 = phi ptr [ %138, %139 ], [ %164, %163 ]
  %166 = phi ptr [ %11, %139 ], [ %38, %163 ]
  %167 = load i32, ptr %.sink92, align 8, !tbaa !23
  %168 = sext i32 %167 to i64
  %169 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6insertEmRKS4_(ptr noundef nonnull align 8 dereferenceable(32) %165, i64 noundef %168, ptr noundef nonnull align 8 dereferenceable(32) %166)
          to label %172 unwind label %103

170:                                              ; preds = %144
  %171 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %13) #7
  br label %176

172:                                              ; preds = %.invoke, %80, %89
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  %173 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %9, i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #7
  %174 = call ptr @_ZNSt6vectorI10struct_varSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %174, ptr %10, align 8
  %175 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP10struct_varSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #7
  br i1 %175, label %59, label %._crit_edge66, !llvm.loop !24

176:                                              ; preds = %170, %142, %103
  %.pn54 = phi { ptr, i32 } [ %104, %103 ], [ %171, %170 ], [ %143, %142 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %11) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %11) #7
  br label %177

177:                                              ; preds = %176, %83
  %.pn54.pn = phi { ptr, i32 } [ %.pn54, %176 ], [ %84, %83 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #7
  br label %270

._crit_edge78:                                    ; preds = %.loopexit, %._crit_edge66
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  call void @_ZNSt6vectorI10struct_varSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  call void @_ZN10insertionsD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %4) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #7
  call void @_ZNSt6vectorI10insertionsSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  ret void

.lr.ph77:                                         ; preds = %._crit_edge66, %.loopexit
  %178 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %179 = load i32, ptr %178, align 8, !tbaa !7
  %180 = icmp eq i32 %179, 3
  br i1 %180, label %181, label %.loopexit

181:                                              ; preds = %.lr.ph77
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %16) #7
  %182 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %183 = getelementptr inbounds i8, ptr %182, i64 8
  %184 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(32) %183)
          to label %185 unwind label %234

185:                                              ; preds = %181
  %186 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %187 = getelementptr inbounds i8, ptr %186, i64 40
  %188 = load i32, ptr %187, align 8, !tbaa !19
  %189 = sext i32 %188 to i64
  %190 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %191 = getelementptr inbounds i8, ptr %190, i64 44
  %192 = load i32, ptr %191, align 4, !tbaa !20
  %193 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %194 = getelementptr inbounds i8, ptr %193, i64 40
  %195 = load i32, ptr %194, align 8, !tbaa !19
  %196 = sub nsw i32 %192, %195
  %197 = sext i32 %196 to i64
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %16, ptr noundef nonnull align 8 dereferenceable(32) %184, i64 noundef %189, i64 noundef %197)
          to label %198 unwind label %234

198:                                              ; preds = %185
  %199 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %17) #7
  %200 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %201 = getelementptr inbounds i8, ptr %200, i64 48
  %202 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(32) %201)
          to label %203 unwind label %236

203:                                              ; preds = %198
  %204 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %205 = getelementptr inbounds i8, ptr %204, i64 80
  %206 = load i32, ptr %205, align 8, !tbaa !22
  %207 = sext i32 %206 to i64
  %208 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %209 = getelementptr inbounds i8, ptr %208, i64 84
  %210 = load i32, ptr %209, align 4, !tbaa !21
  %211 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %212 = getelementptr inbounds i8, ptr %211, i64 80
  %213 = load i32, ptr %212, align 8, !tbaa !22
  %214 = sub nsw i32 %210, %213
  %215 = sext i32 %214 to i64
  invoke void @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6substrEmm(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %17, ptr noundef nonnull align 8 dereferenceable(32) %202, i64 noundef %207, i64 noundef %215)
          to label %216 unwind label %236

216:                                              ; preds = %203
  %217 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEOS4_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %17) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #7
  %218 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %219 = getelementptr inbounds i8, ptr %218, i64 80
  %220 = load i32, ptr %219, align 8, !tbaa !22
  %221 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %222 = getelementptr inbounds i8, ptr %221, i64 84
  %223 = load i32, ptr %222, align 4, !tbaa !21
  %224 = icmp slt i32 %220, %223
  br i1 %224, label %.lr.ph70.preheader, label %._crit_edge71

.lr.ph70.preheader:                               ; preds = %216
  %225 = sext i32 %220 to i64
  br label %.lr.ph70

._crit_edge71:                                    ; preds = %243, %216
  %226 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %227 = getelementptr inbounds i8, ptr %226, i64 40
  %228 = load i32, ptr %227, align 8, !tbaa !19
  %229 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %230 = getelementptr inbounds i8, ptr %229, i64 44
  %231 = load i32, ptr %230, align 4, !tbaa !20
  %232 = icmp slt i32 %228, %231
  br i1 %232, label %.lr.ph75.preheader, label %.loopexit

.lr.ph75.preheader:                               ; preds = %._crit_edge71
  %233 = sext i32 %228 to i64
  br label %.lr.ph75

234:                                              ; preds = %185, %181
  %235 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %16) #7
  br label %269

236:                                              ; preds = %203, %198
  %237 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %17) #7
  br label %269

.lr.ph70:                                         ; preds = %.lr.ph70.preheader, %243
  %indvars.iv80 = phi i64 [ %225, %.lr.ph70.preheader ], [ %indvars.iv.next81, %243 ]
  %indvars.iv = phi i64 [ 0, %.lr.ph70.preheader ], [ %indvars.iv.next, %243 ]
  %238 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %indvars.iv)
  %239 = load i8, ptr %238, align 1, !tbaa !25
  %240 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %241 = getelementptr inbounds i8, ptr %240, i64 48
  %242 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(32) %241)
          to label %243 unwind label %250

243:                                              ; preds = %.lr.ph70
  %244 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %242, i64 noundef %indvars.iv80)
  store i8 %239, ptr %244, align 1, !tbaa !25
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %indvars.iv.next81 = add nsw i64 %indvars.iv80, 1
  %245 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %246 = getelementptr inbounds i8, ptr %245, i64 84
  %247 = load i32, ptr %246, align 4, !tbaa !21
  %248 = sext i32 %247 to i64
  %249 = icmp slt i64 %indvars.iv.next81, %248
  br i1 %249, label %.lr.ph70, label %._crit_edge71, !llvm.loop !26

250:                                              ; preds = %.lr.ph70
  %251 = landingpad { ptr, i32 }
          cleanup
  br label %269

.lr.ph75:                                         ; preds = %.lr.ph75.preheader, %257
  %indvars.iv87 = phi i64 [ %233, %.lr.ph75.preheader ], [ %indvars.iv.next88, %257 ]
  %indvars.iv85 = phi i64 [ 0, %.lr.ph75.preheader ], [ %indvars.iv.next86, %257 ]
  %252 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %6, i64 noundef %indvars.iv85)
  %253 = load i8, ptr %252, align 1, !tbaa !25
  %254 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %255 = getelementptr inbounds i8, ptr %254, i64 8
  %256 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEEixERS9_(ptr noundef nonnull align 8 dereferenceable(48) %0, ptr noundef nonnull align 8 dereferenceable(32) %255)
          to label %257 unwind label %264

257:                                              ; preds = %.lr.ph75
  %258 = call noundef nonnull align 1 dereferenceable(1) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEixEm(ptr noundef nonnull align 8 dereferenceable(32) %256, i64 noundef %indvars.iv87)
  store i8 %253, ptr %258, align 1, !tbaa !25
  %indvars.iv.next86 = add nuw nsw i64 %indvars.iv85, 1
  %indvars.iv.next88 = add nsw i64 %indvars.iv87, 1
  %259 = call noundef nonnull align 8 dereferenceable(160) ptr @_ZNK9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %14) #7
  %260 = getelementptr inbounds i8, ptr %259, i64 44
  %261 = load i32, ptr %260, align 4, !tbaa !20
  %262 = sext i32 %261 to i64
  %263 = icmp slt i64 %indvars.iv.next88, %262
  br i1 %263, label %.lr.ph75, label %.loopexit, !llvm.loop !27

264:                                              ; preds = %.lr.ph75
  %265 = landingpad { ptr, i32 }
          cleanup
  br label %269

.loopexit:                                        ; preds = %257, %._crit_edge71, %.lr.ph77
  %266 = call ptr @_ZN9__gnu_cxx17__normal_iteratorIP10struct_varSt6vectorIS1_SaIS1_EEEppEi(ptr noundef nonnull align 8 dereferenceable(8) %14, i32 noundef 0) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #7
  %267 = call ptr @_ZNSt6vectorI10struct_varSaIS0_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #7
  store ptr %267, ptr %15, align 8
  %268 = call noundef zeroext i1 @_ZN9__gnu_cxxneIP10struct_varSt6vectorIS1_SaIS1_EEEEbRKNS_17__normal_iteratorIT_T0_EESB_(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #7
  br i1 %268, label %.lr.ph77, label %._crit_edge78, !llvm.loop !28

269:                                              ; preds = %264, %250, %236, %234
  %.pn = phi { ptr, i32 } [ %251, %250 ], [ %265, %264 ], [ %237, %236 ], [ %235, %234 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #7
  br label %270

270:                                              ; preds = %31, %33, %269, %177, %40
  %.pn57.pn = phi { ptr, i32 } [ %.pn54.pn, %177 ], [ %.pn, %269 ], [ %41, %40 ], [ %34, %33 ], [ %32, %31 ]
  call void @_ZNSt6vectorI10struct_varSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #7
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  call void @_ZN10insertionsD2Ev(ptr noundef nonnull align 8 dereferenceable(72) %4) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #7
  call void @_ZNSt6vectorI10insertionsSaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %3) #7
  resume { ptr, i32 } %.pn57.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN10struct_varC2ERKS_(ptr noundef nonnull align 8 dereferenceable(160), ptr noundef nonnull align 8 dereferenceable(160)) unnamed_addr #0 align 2

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !9, i64 0}
!8 = !{!"_ZTS10struct_var", !9, i64 0, !12, i64 8, !12, i64 48, !13, i64 88, !13, i64 120, !17, i64 152, !9, i64 156}
!9 = !{!"int", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"_ZTS8position", !13, i64 0, !9, i64 32, !9, i64 36}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !16, i64 8, !10, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !15, i64 0}
!15 = !{!"any pointer", !10, i64 0}
!16 = !{!"long", !10, i64 0}
!17 = !{!"bool", !10, i64 0}
!18 = distinct !{!18, !6}
!19 = !{!8, !9, i64 40}
!20 = !{!8, !9, i64 44}
!21 = !{!8, !9, i64 84}
!22 = !{!8, !9, i64 80}
!23 = !{!9, !9, i64 0}
!24 = distinct !{!24, !6}
!25 = !{!10, !10, i64 0}
!26 = distinct !{!26, !6}
!27 = distinct !{!27, !6}
!28 = distinct !{!28, !6}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass