; LLVM IR from fritzsedlazeck/SURVIVOR :: src/convert (Convert_VCF_to_BED)

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

%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<strvcfentry, std::allocator<strvcfentry>>::_Vector_impl" }
%"struct.std::_Vector_base<strvcfentry, std::allocator<strvcfentry>>::_Vector_impl" = type { %"struct.std::_Vector_base<strvcfentry, std::allocator<strvcfentry>>::_Vector_impl_data" }
%"struct.std::_Vector_base<strvcfentry, std::allocator<strvcfentry>>::_Vector_impl_data" = type { ptr, ptr, 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] }
%struct.strvcfentry = type <{ %"class.std::__cxx11::basic_string", %struct.strcoordinate, %struct.strcoordinate, i16, [6 x i8], %"class.std::map", i32, i32, %"class.std::vector", %"struct.std::pair", [2 x i8], %"struct.std::pair.6", [4 x i8], %"class.std::__cxx11::basic_string", i32, [4 x i8], %"class.std::__cxx11::basic_string", double, %"class.std::__cxx11::basic_string", i32, [4 x i8], %"struct.std::pair.8", %"struct.std::pair.6", %"struct.std::pair.6", i32, [4 x i8] }>
%struct.strcoordinate = type { i32, %"class.std::__cxx11::basic_string" }
%"class.std::map" = type { %"class.std::_Rb_tree" }
%"class.std::_Rb_tree" = type { %"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" }
%"struct.std::_Rb_tree<std::__cxx11::basic_string<char>, std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>, std::_Select1st<std::pair<const std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char>>>, std::less<std::__cxx11::basic_string<char>>>::_Rb_tree_impl" = type { [8 x i8], %"struct.std::_Rb_tree_header" }
%"struct.std::_Rb_tree_header" = type { %"struct.std::_Rb_tree_node_base", i64 }
%"struct.std::_Rb_tree_node_base" = type { i32, ptr, ptr, ptr }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i8, i8 }
%"struct.std::pair.8" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"struct.std::pair.6" = type { i32, i32 }

@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_Z9parse_vcfRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr dead_on_unwind writable sret(%"class.std::vector.18") align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #2

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

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

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #3

declare void @_Z10trans_typeB5cxx11s(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, i16 noundef signext) #2

declare i32 @fclose(ptr noundef) #2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i8 @_Z13trans_strandsb(i1 noundef zeroext) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z16parse_VCF_to_bedNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiiS4_(ptr noundef %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) #4 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca %"class.std::vector.18", align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::__cxx11::basic_string", align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !9
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #5
  %16 = load i32, ptr %6, align 4, !tbaa !9
  call void @_Z9parse_vcfRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr dead_on_unwind writable sret(%"class.std::vector.18") align 8 %9, ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %16)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %17 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  %18 = invoke noalias ptr @fopen(ptr noundef %17, ptr noundef @.str.5)
          to label %19 unwind label %25

19:                                               ; preds = %4
  store ptr %18, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !11
  br label %20

20:                                               ; preds = %257, %19
  %21 = load i64, ptr %13, align 8, !tbaa !11
  %22 = call noundef i64 @_ZNKSt6vectorI11strvcfentrySaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  %23 = icmp ult i64 %21, %22
  br i1 %23, label %29, label %24

24:                                               ; preds = %20
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %260

25:                                               ; preds = %260, %4
  %26 = landingpad { ptr, i32 }
          cleanup
  %27 = extractvalue { ptr, i32 } %26, 0
  store ptr %27, ptr %11, align 8
  %28 = extractvalue { ptr, i32 } %26, 1
  store i32 %28, ptr %12, align 4
  br label %264

29:                                               ; preds = %20
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %30 = load i32, ptr %6, align 4, !tbaa !9
  %31 = add nsw i32 %30, 1
  store i32 %31, ptr %14, align 4, !tbaa !9
  %32 = load i64, ptr %13, align 8, !tbaa !11
  %33 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %32) #5
  %34 = getelementptr inbounds %struct.strvcfentry, ptr %33, i32 0, i32 3
  %35 = load i16, ptr %34, align 8, !tbaa !13
  %36 = sext i16 %35 to i32
  %37 = icmp eq i32 %36, 4
  br i1 %37, label %38, label %43

38:                                               ; preds = %29
  %39 = load i64, ptr %13, align 8, !tbaa !11
  %40 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %39) #5
  %41 = getelementptr inbounds %struct.strvcfentry, ptr %40, i32 0, i32 14
  %42 = load i32, ptr %41, align 8, !tbaa !36
  store i32 %42, ptr %14, align 4, !tbaa !9
  br label %77

43:                                               ; preds = %29
  %44 = load i64, ptr %13, align 8, !tbaa !11
  %45 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %44) #5
  %46 = getelementptr inbounds %struct.strvcfentry, ptr %45, i32 0, i32 3
  %47 = load i16, ptr %46, align 8, !tbaa !13
  %48 = sext i16 %47 to i32
  %49 = icmp ne i32 %48, 3
  br i1 %49, label %50, label %76

50:                                               ; preds = %43
  %51 = load i64, ptr %13, align 8, !tbaa !11
  %52 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %51) #5
  %53 = getelementptr inbounds %struct.strvcfentry, ptr %52, i32 0, i32 3
  %54 = load i16, ptr %53, align 8, !tbaa !13
  %55 = sext i16 %54 to i32
  %56 = icmp ne i32 %55, 5
  br i1 %56, label %57, label %76

57:                                               ; preds = %50
  %58 = load i64, ptr %13, align 8, !tbaa !11
  %59 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %58) #5
  %60 = getelementptr inbounds %struct.strvcfentry, ptr %59, i32 0, i32 3
  %61 = load i16, ptr %60, align 8, !tbaa !13
  %62 = sext i16 %61 to i32
  %63 = icmp ne i32 %62, -1
  br i1 %63, label %64, label %76

64:                                               ; preds = %57
  %65 = load i64, ptr %13, align 8, !tbaa !11
  %66 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %65) #5
  %67 = getelementptr inbounds %struct.strvcfentry, ptr %66, i32 0, i32 2
  %68 = getelementptr inbounds %struct.strcoordinate, ptr %67, i32 0, i32 0
  %69 = load i32, ptr %68, align 8, !tbaa !37
  %70 = load i64, ptr %13, align 8, !tbaa !11
  %71 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %70) #5
  %72 = getelementptr inbounds %struct.strvcfentry, ptr %71, i32 0, i32 1
  %73 = getelementptr inbounds %struct.strcoordinate, ptr %72, i32 0, i32 0
  %74 = load i32, ptr %73, align 8, !tbaa !38
  %75 = sub nsw i32 %69, %74
  store i32 %75, ptr %14, align 4, !tbaa !9
  br label %76

76:                                               ; preds = %64, %57, %50, %43
  br label %77

77:                                               ; preds = %76, %38
  %78 = load i32, ptr %14, align 4, !tbaa !9
  %79 = load i32, ptr %6, align 4, !tbaa !9
  %80 = icmp sgt i32 %78, %79
  br i1 %80, label %81, label %256

81:                                               ; preds = %77
  %82 = load i32, ptr %14, align 4, !tbaa !9
  %83 = load i32, ptr %7, align 4, !tbaa !9
  %84 = icmp slt i32 %82, %83
  br i1 %84, label %88, label %85

85:                                               ; preds = %81
  %86 = load i32, ptr %7, align 4, !tbaa !9
  %87 = icmp eq i32 %86, -1
  br i1 %87, label %88, label %256

88:                                               ; preds = %85, %81
  %89 = load ptr, ptr %10, align 8, !tbaa !5
  %90 = load i64, ptr %13, align 8, !tbaa !11
  %91 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %90) #5
  %92 = getelementptr inbounds %struct.strvcfentry, ptr %91, i32 0, i32 1
  %93 = getelementptr inbounds %struct.strcoordinate, ptr %92, i32 0, i32 1
  %94 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %93) #5
  %95 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %89, ptr noundef @.str.6, ptr noundef %94) #5
  %96 = load ptr, ptr %10, align 8, !tbaa !5
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %96, ptr noundef @.str.7, i32 noundef 9) #5
  %98 = load ptr, ptr %10, align 8, !tbaa !5
  %99 = load i64, ptr %13, align 8, !tbaa !11
  %100 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %99) #5
  %101 = getelementptr inbounds %struct.strvcfentry, ptr %100, i32 0, i32 1
  %102 = getelementptr inbounds %struct.strcoordinate, ptr %101, i32 0, i32 0
  %103 = load i32, ptr %102, align 8, !tbaa !38
  %104 = sub nsw i32 %103, 1
  %105 = load i64, ptr %13, align 8, !tbaa !11
  %106 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %105) #5
  %107 = getelementptr inbounds %struct.strvcfentry, ptr %106, i32 0, i32 22
  %108 = getelementptr inbounds %"struct.std::pair.6", ptr %107, i32 0, i32 0
  %109 = load i32, ptr %108, align 8, !tbaa !39
  %110 = add nsw i32 %104, %109
  %111 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %98, ptr noundef @.str.8, i32 noundef %110) #5
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %112, ptr noundef @.str.7, i32 noundef 9) #5
  %114 = load ptr, ptr %10, align 8, !tbaa !5
  %115 = load i64, ptr %13, align 8, !tbaa !11
  %116 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %115) #5
  %117 = getelementptr inbounds %struct.strvcfentry, ptr %116, i32 0, i32 1
  %118 = getelementptr inbounds %struct.strcoordinate, ptr %117, i32 0, i32 0
  %119 = load i32, ptr %118, align 8, !tbaa !38
  %120 = sub nsw i32 %119, 1
  %121 = load i64, ptr %13, align 8, !tbaa !11
  %122 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %121) #5
  %123 = getelementptr inbounds %struct.strvcfentry, ptr %122, i32 0, i32 22
  %124 = getelementptr inbounds %"struct.std::pair.6", ptr %123, i32 0, i32 1
  %125 = load i32, ptr %124, align 4, !tbaa !40
  %126 = add nsw i32 %120, %125
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %114, ptr noundef @.str.8, i32 noundef %126) #5
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %128, ptr noundef @.str.7, i32 noundef 9) #5
  %130 = load ptr, ptr %10, align 8, !tbaa !5
  %131 = load i64, ptr %13, align 8, !tbaa !11
  %132 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %131) #5
  %133 = getelementptr inbounds %struct.strvcfentry, ptr %132, i32 0, i32 2
  %134 = getelementptr inbounds %struct.strcoordinate, ptr %133, i32 0, i32 1
  %135 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %134) #5
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %130, ptr noundef @.str.6, ptr noundef %135) #5
  %137 = load ptr, ptr %10, align 8, !tbaa !5
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %137, ptr noundef @.str.7, i32 noundef 9) #5
  %139 = load ptr, ptr %10, align 8, !tbaa !5
  %140 = load i64, ptr %13, align 8, !tbaa !11
  %141 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %140) #5
  %142 = getelementptr inbounds %struct.strvcfentry, ptr %141, i32 0, i32 2
  %143 = getelementptr inbounds %struct.strcoordinate, ptr %142, i32 0, i32 0
  %144 = load i32, ptr %143, align 8, !tbaa !37
  %145 = load i64, ptr %13, align 8, !tbaa !11
  %146 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %145) #5
  %147 = getelementptr inbounds %struct.strvcfentry, ptr %146, i32 0, i32 23
  %148 = getelementptr inbounds %"struct.std::pair.6", ptr %147, i32 0, i32 0
  %149 = load i32, ptr %148, align 8, !tbaa !41
  %150 = add nsw i32 %144, %149
  %151 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %139, ptr noundef @.str.8, i32 noundef %150) #5
  %152 = load ptr, ptr %10, align 8, !tbaa !5
  %153 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %152, ptr noundef @.str.7, i32 noundef 9) #5
  %154 = load ptr, ptr %10, align 8, !tbaa !5
  %155 = load i64, ptr %13, align 8, !tbaa !11
  %156 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %155) #5
  %157 = getelementptr inbounds %struct.strvcfentry, ptr %156, i32 0, i32 2
  %158 = getelementptr inbounds %struct.strcoordinate, ptr %157, i32 0, i32 0
  %159 = load i32, ptr %158, align 8, !tbaa !37
  %160 = load i64, ptr %13, align 8, !tbaa !11
  %161 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %160) #5
  %162 = getelementptr inbounds %struct.strvcfentry, ptr %161, i32 0, i32 23
  %163 = getelementptr inbounds %"struct.std::pair.6", ptr %162, i32 0, i32 1
  %164 = load i32, ptr %163, align 4, !tbaa !42
  %165 = add nsw i32 %159, %164
  %166 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %154, ptr noundef @.str.8, i32 noundef %165) #5
  %167 = load ptr, ptr %10, align 8, !tbaa !5
  %168 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %167, ptr noundef @.str.7, i32 noundef 9) #5
  %169 = load ptr, ptr %10, align 8, !tbaa !5
  %170 = load i64, ptr %13, align 8, !tbaa !11
  %171 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %170) #5
  %172 = getelementptr inbounds %struct.strvcfentry, ptr %171, i32 0, i32 16
  %173 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %172) #5
  %174 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %169, ptr noundef @.str.6, ptr noundef %173) #5
  %175 = load ptr, ptr %10, align 8, !tbaa !5
  %176 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %175, ptr noundef @.str.7, i32 noundef 9) #5
  %177 = load ptr, ptr %10, align 8, !tbaa !5
  %178 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %177, ptr noundef @.str.7, i32 noundef 44) #5
  %179 = load ptr, ptr %10, align 8, !tbaa !5
  %180 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %179, ptr noundef @.str.7, i32 noundef 9) #5
  %181 = load ptr, ptr %10, align 8, !tbaa !5
  %182 = load i64, ptr %13, align 8, !tbaa !11
  %183 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %182) #5
  %184 = getelementptr inbounds %struct.strvcfentry, ptr %183, i32 0, i32 9
  %185 = getelementptr inbounds %"struct.std::pair", ptr %184, i32 0, i32 0
  %186 = load i8, ptr %185, align 8, !tbaa !43, !range !44, !noundef !45
  %187 = trunc i8 %186 to i1
  %188 = call noundef signext i8 @_Z13trans_strandsb(i1 noundef zeroext %187)
  %189 = sext i8 %188 to i32
  %190 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %181, ptr noundef @.str.7, i32 noundef %189) #5
  %191 = load ptr, ptr %10, align 8, !tbaa !5
  %192 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %191, ptr noundef @.str.7, i32 noundef 9) #5
  %193 = load ptr, ptr %10, align 8, !tbaa !5
  %194 = load i64, ptr %13, align 8, !tbaa !11
  %195 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %194) #5
  %196 = getelementptr inbounds %struct.strvcfentry, ptr %195, i32 0, i32 9
  %197 = getelementptr inbounds %"struct.std::pair", ptr %196, i32 0, i32 1
  %198 = load i8, ptr %197, align 1, !tbaa !46, !range !44, !noundef !45
  %199 = trunc i8 %198 to i1
  %200 = call noundef signext i8 @_Z13trans_strandsb(i1 noundef zeroext %199)
  %201 = sext i8 %200 to i32
  %202 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %193, ptr noundef @.str.7, i32 noundef %201) #5
  %203 = load ptr, ptr %10, align 8, !tbaa !5
  %204 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %203, ptr noundef @.str.7, i32 noundef 9) #5
  %205 = load ptr, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 32, ptr %15) #5
  %206 = load i64, ptr %13, align 8, !tbaa !11
  %207 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %206) #5
  %208 = getelementptr inbounds %struct.strvcfentry, ptr %207, i32 0, i32 3
  %209 = load i16, ptr %208, align 8, !tbaa !13
  invoke void @_Z10trans_typeB5cxx11s(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %15, i16 noundef signext %209)
          to label %210 unwind label %252

210:                                              ; preds = %88
  %211 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  %212 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %205, ptr noundef @.str.6, ptr noundef %211) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %15) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  %213 = load ptr, ptr %10, align 8, !tbaa !5
  %214 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %213, ptr noundef @.str.7, i32 noundef 9) #5
  %215 = load ptr, ptr %10, align 8, !tbaa !5
  %216 = load i64, ptr %13, align 8, !tbaa !11
  %217 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %216) #5
  %218 = getelementptr inbounds %struct.strvcfentry, ptr %217, i32 0, i32 1
  %219 = getelementptr inbounds %struct.strcoordinate, ptr %218, i32 0, i32 1
  %220 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %219) #5
  %221 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %215, ptr noundef @.str.6, ptr noundef %220) #5
  %222 = load ptr, ptr %10, align 8, !tbaa !5
  %223 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %222, ptr noundef @.str.7, i32 noundef 9) #5
  %224 = load ptr, ptr %10, align 8, !tbaa !5
  %225 = load i64, ptr %13, align 8, !tbaa !11
  %226 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %225) #5
  %227 = getelementptr inbounds %struct.strvcfentry, ptr %226, i32 0, i32 1
  %228 = getelementptr inbounds %struct.strcoordinate, ptr %227, i32 0, i32 0
  %229 = load i32, ptr %228, align 8, !tbaa !38
  %230 = sub nsw i32 %229, 1
  %231 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %224, ptr noundef @.str.8, i32 noundef %230) #5
  %232 = load ptr, ptr %10, align 8, !tbaa !5
  %233 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %232, ptr noundef @.str.7, i32 noundef 9) #5
  %234 = load ptr, ptr %10, align 8, !tbaa !5
  %235 = load i64, ptr %13, align 8, !tbaa !11
  %236 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %235) #5
  %237 = getelementptr inbounds %struct.strvcfentry, ptr %236, i32 0, i32 2
  %238 = getelementptr inbounds %struct.strcoordinate, ptr %237, i32 0, i32 1
  %239 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %238) #5
  %240 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %234, ptr noundef @.str.6, ptr noundef %239) #5
  %241 = load ptr, ptr %10, align 8, !tbaa !5
  %242 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %241, ptr noundef @.str.7, i32 noundef 9) #5
  %243 = load ptr, ptr %10, align 8, !tbaa !5
  %244 = load i64, ptr %13, align 8, !tbaa !11
  %245 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %244) #5
  %246 = getelementptr inbounds %struct.strvcfentry, ptr %245, i32 0, i32 2
  %247 = getelementptr inbounds %struct.strcoordinate, ptr %246, i32 0, i32 0
  %248 = load i32, ptr %247, align 8, !tbaa !37
  %249 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %243, ptr noundef @.str.8, i32 noundef %248) #5
  %250 = load ptr, ptr %10, align 8, !tbaa !5
  %251 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %250, ptr noundef @.str.7, i32 noundef 10) #5
  br label %256

252:                                              ; preds = %88
  %253 = landingpad { ptr, i32 }
          cleanup
  %254 = extractvalue { ptr, i32 } %253, 0
  store ptr %254, ptr %11, align 8
  %255 = extractvalue { ptr, i32 } %253, 1
  store i32 %255, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 32, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %264

256:                                              ; preds = %210, %85, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %257

257:                                              ; preds = %256
  %258 = load i64, ptr %13, align 8, !tbaa !11
  %259 = add i64 %258, 1
  store i64 %259, ptr %13, align 8, !tbaa !11
  br label %20, !llvm.loop !47

260:                                              ; preds = %24
  %261 = load ptr, ptr %10, align 8, !tbaa !5
  %262 = invoke i32 @fclose(ptr noundef %261)
          to label %263 unwind label %25

263:                                              ; preds = %260
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @_ZNSt6vectorI11strvcfentrySaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #5
  ret void

264:                                              ; preds = %252, %25
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  call void @_ZNSt6vectorI11strvcfentrySaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #5
  br label %265

265:                                              ; preds = %264
  %266 = load ptr, ptr %11, align 8
  %267 = load i32, ptr %12, align 4
  %268 = insertvalue { ptr, i32 } poison, ptr %266, 0
  %269 = insertvalue { ptr, i32 } %268, i32 %267, 1
  resume { ptr, i32 } %269
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !18, i64 112}
!14 = !{!"_ZTS11strvcfentry", !15, i64 0, !17, i64 32, !17, i64 72, !18, i64 112, !19, i64 120, !10, i64 168, !10, i64 172, !27, i64 176, !31, i64 200, !33, i64 204, !15, i64 216, !10, i64 248, !15, i64 256, !34, i64 288, !15, i64 296, !10, i64 328, !35, i64 336, !33, i64 400, !33, i64 408, !10, i64 416}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !12, i64 8, !7, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!17 = !{!"_ZTS13strcoordinate", !10, i64 0, !15, i64 8}
!18 = !{!"short", !7, i64 0}
!19 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEE", !20, i64 0}
!20 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE", !21, i64 0}
!21 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !22, i64 0, !24, i64 8}
!22 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !23, i64 0}
!23 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!24 = !{!"_ZTSSt15_Rb_tree_header", !25, i64 0, !12, i64 32}
!25 = !{!"_ZTSSt18_Rb_tree_node_base", !26, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!26 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!27 = !{!"_ZTSSt6vectorIiSaIiEE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!31 = !{!"_ZTSSt4pairIbbE", !32, i64 0, !32, i64 1}
!32 = !{!"bool", !7, i64 0}
!33 = !{!"_ZTSSt4pairIiiE", !10, i64 0, !10, i64 4}
!34 = !{!"double", !7, i64 0}
!35 = !{!"_ZTSSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_E", !15, i64 0, !15, i64 32}
!36 = !{!14, !10, i64 248}
!37 = !{!14, !10, i64 72}
!38 = !{!14, !10, i64 32}
!39 = !{!14, !10, i64 400}
!40 = !{!14, !10, i64 404}
!41 = !{!14, !10, i64 408}
!42 = !{!14, !10, i64 412}
!43 = !{!14, !32, i64 200}
!44 = !{i8 0, i8 2}
!45 = !{}
!46 = !{!14, !32, i64 201}
!47 = distinct !{!47, !48}
!48 = !{!"llvm.loop.mustprogress"}


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

%"class.std::vector.18" = type { %"struct.std::_Vector_base.19" }
%"struct.std::_Vector_base.19" = type { %"struct.std::_Vector_base<strvcfentry, std::allocator<strvcfentry>>::_Vector_impl" }
%"struct.std::_Vector_base<strvcfentry, std::allocator<strvcfentry>>::_Vector_impl" = type { %"struct.std::_Vector_base<strvcfentry, std::allocator<strvcfentry>>::_Vector_impl_data" }
%"struct.std::_Vector_base<strvcfentry, std::allocator<strvcfentry>>::_Vector_impl_data" = type { ptr, ptr, 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] }

@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [3 x i8], align 1

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

declare void @_Z9parse_vcfRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr dead_on_unwind writable sret(%"class.std::vector.18") align 8, ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #3

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

declare void @_Z10trans_typeB5cxx11s(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8, i16 noundef signext) local_unnamed_addr #3

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef signext i8 @_Z13trans_strandsb(i1 noundef zeroext) local_unnamed_addr #1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z16parse_VCF_to_bedNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEiiS4_(ptr noundef nonnull %0, i32 noundef %1, i32 noundef %2, ptr noundef %3) local_unnamed_addr #4 personality ptr @__gxx_personality_v0 {
  %5 = alloca %"class.std::vector.18", align 8
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %5) #5
  call void @_Z9parse_vcfRNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEi(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.18") align 8 %5, ptr noundef nonnull align 8 dereferenceable(32) %0, i32 noundef %1)
  %7 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %3) #5
  %8 = call noalias ptr @fopen(ptr noundef %7, ptr noundef nonnull @.str.5)
  %9 = call noundef i64 @_ZNKSt6vectorI11strvcfentrySaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  %.not73 = icmp eq i64 %9, 0
  br i1 %.not73, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %4
  %10 = add nsw i32 %1, 1
  %11 = icmp eq i32 %2, -1
  br label %13

._crit_edge:                                      ; preds = %146, %4
  %12 = call i32 @fclose(ptr noundef %8)
  call void @_ZNSt6vectorI11strvcfentrySaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  ret void

13:                                               ; preds = %.lr.ph, %146
  %.06772 = phi i64 [ 0, %.lr.ph ], [ %147, %146 ]
  %14 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %15 = getelementptr inbounds i8, ptr %14, i64 112
  %16 = load i16, ptr %15, align 8, !tbaa !5
  %17 = icmp eq i16 %16, 4
  %18 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  br i1 %17, label %19, label %22

19:                                               ; preds = %13
  %20 = getelementptr inbounds i8, ptr %18, i64 248
  %21 = load i32, ptr %20, align 8, !tbaa !33
  br label %41

22:                                               ; preds = %13
  %23 = getelementptr inbounds i8, ptr %18, i64 112
  %24 = load i16, ptr %23, align 8, !tbaa !5
  %.not = icmp eq i16 %24, 3
  br i1 %.not, label %.thread, label %25

25:                                               ; preds = %22
  %26 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %27 = getelementptr inbounds i8, ptr %26, i64 112
  %28 = load i16, ptr %27, align 8, !tbaa !5
  %.not68 = icmp eq i16 %28, 5
  br i1 %.not68, label %.thread, label %29

29:                                               ; preds = %25
  %30 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %31 = getelementptr inbounds i8, ptr %30, i64 112
  %32 = load i16, ptr %31, align 8, !tbaa !5
  %.not69 = icmp eq i16 %32, -1
  br i1 %.not69, label %.thread, label %33

33:                                               ; preds = %29
  %34 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %35 = getelementptr inbounds i8, ptr %34, i64 72
  %36 = load i32, ptr %35, align 8, !tbaa !34
  %37 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %38 = getelementptr inbounds i8, ptr %37, i64 32
  %39 = load i32, ptr %38, align 8, !tbaa !35
  %40 = sub nsw i32 %36, %39
  br label %41

41:                                               ; preds = %33, %19
  %.0 = phi i32 [ %21, %19 ], [ %40, %33 ]
  %42 = icmp sgt i32 %.0, %1
  br i1 %42, label %.thread, label %146

.thread:                                          ; preds = %22, %25, %29, %41
  %.071 = phi i32 [ %.0, %41 ], [ %10, %29 ], [ %10, %25 ], [ %10, %22 ]
  %43 = icmp slt i32 %.071, %2
  %or.cond = or i1 %11, %43
  br i1 %or.cond, label %44, label %146

44:                                               ; preds = %.thread
  %45 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %46 = getelementptr inbounds i8, ptr %45, i64 40
  %47 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %46) #5
  %48 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.6, ptr noundef %47) #5
  %49 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.7, i32 noundef 9) #5
  %50 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %51 = getelementptr inbounds i8, ptr %50, i64 32
  %52 = load i32, ptr %51, align 8, !tbaa !35
  %53 = add nsw i32 %52, -1
  %54 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %55 = getelementptr inbounds i8, ptr %54, i64 400
  %56 = load i32, ptr %55, align 8, !tbaa !36
  %57 = add nsw i32 %53, %56
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.8, i32 noundef %57) #5
  %59 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.7, i32 noundef 9) #5
  %60 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %61 = getelementptr inbounds i8, ptr %60, i64 32
  %62 = load i32, ptr %61, align 8, !tbaa !35
  %63 = add nsw i32 %62, -1
  %64 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %65 = getelementptr inbounds i8, ptr %64, i64 404
  %66 = load i32, ptr %65, align 4, !tbaa !37
  %67 = add nsw i32 %63, %66
  %68 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.8, i32 noundef %67) #5
  %69 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.7, i32 noundef 9) #5
  %70 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %71 = getelementptr inbounds i8, ptr %70, i64 80
  %72 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %71) #5
  %73 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.6, ptr noundef %72) #5
  %74 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.7, i32 noundef 9) #5
  %75 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %76 = getelementptr inbounds i8, ptr %75, i64 72
  %77 = load i32, ptr %76, align 8, !tbaa !34
  %78 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %79 = getelementptr inbounds i8, ptr %78, i64 408
  %80 = load i32, ptr %79, align 8, !tbaa !38
  %81 = add nsw i32 %80, %77
  %82 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.8, i32 noundef %81) #5
  %83 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.7, i32 noundef 9) #5
  %84 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %85 = getelementptr inbounds i8, ptr %84, i64 72
  %86 = load i32, ptr %85, align 8, !tbaa !34
  %87 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %88 = getelementptr inbounds i8, ptr %87, i64 412
  %89 = load i32, ptr %88, align 4, !tbaa !39
  %90 = add nsw i32 %89, %86
  %91 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.8, i32 noundef %90) #5
  %92 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.7, i32 noundef 9) #5
  %93 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %94 = getelementptr inbounds i8, ptr %93, i64 256
  %95 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %94) #5
  %96 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.6, ptr noundef %95) #5
  %97 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.7, i32 noundef 9) #5
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.7, i32 noundef 44) #5
  %99 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.7, i32 noundef 9) #5
  %100 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %101 = getelementptr inbounds i8, ptr %100, i64 200
  %102 = load i8, ptr %101, align 8, !tbaa !40, !range !41, !noundef !42
  %103 = trunc nuw i8 %102 to i1
  %104 = call noundef signext i8 @_Z13trans_strandsb(i1 noundef zeroext %103)
  %105 = sext i8 %104 to i32
  %106 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.7, i32 noundef %105) #5
  %107 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.7, i32 noundef 9) #5
  %108 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %109 = getelementptr inbounds i8, ptr %108, i64 201
  %110 = load i8, ptr %109, align 1, !tbaa !43, !range !41, !noundef !42
  %111 = trunc nuw i8 %110 to i1
  %112 = call noundef signext i8 @_Z13trans_strandsb(i1 noundef zeroext %111)
  %113 = sext i8 %112 to i32
  %114 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.7, i32 noundef %113) #5
  %115 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.7, i32 noundef 9) #5
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #5
  %116 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %117 = getelementptr inbounds i8, ptr %116, i64 112
  %118 = load i16, ptr %117, align 8, !tbaa !5
  invoke void @_Z10trans_typeB5cxx11s(ptr dead_on_unwind nonnull writable sret(%"class.std::__cxx11::basic_string") align 8 %6, i16 noundef signext %118)
          to label %119 unwind label %144

119:                                              ; preds = %44
  %120 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  %121 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.6, ptr noundef %120) #5
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #5
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  %122 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.7, i32 noundef 9) #5
  %123 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %124 = getelementptr inbounds i8, ptr %123, i64 40
  %125 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %124) #5
  %126 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.6, ptr noundef %125) #5
  %127 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.7, i32 noundef 9) #5
  %128 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %129 = getelementptr inbounds i8, ptr %128, i64 32
  %130 = load i32, ptr %129, align 8, !tbaa !35
  %131 = add nsw i32 %130, -1
  %132 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.8, i32 noundef %131) #5
  %133 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.7, i32 noundef 9) #5
  %134 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %135 = getelementptr inbounds i8, ptr %134, i64 80
  %136 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %135) #5
  %137 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.6, ptr noundef %136) #5
  %138 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.7, i32 noundef 9) #5
  %139 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %5, i64 noundef %.06772) #5
  %140 = getelementptr inbounds i8, ptr %139, i64 72
  %141 = load i32, ptr %140, align 8, !tbaa !34
  %142 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.8, i32 noundef %141) #5
  %143 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %8, ptr noundef nonnull @.str.7, i32 noundef 10) #5
  br label %146

144:                                              ; preds = %44
  %145 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #5
  call void @_ZNSt6vectorI11strvcfentrySaIS0_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  resume { ptr, i32 } %145

146:                                              ; preds = %.thread, %119, %41
  %147 = add nuw i64 %.06772, 1
  %148 = call noundef i64 @_ZNKSt6vectorI11strvcfentrySaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #5
  %149 = icmp ult i64 %147, %148
  br i1 %149, label %13, label %._crit_edge, !llvm.loop !44
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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, !15, i64 112}
!6 = !{!"_ZTS11strvcfentry", !7, i64 0, !13, i64 32, !13, i64 72, !15, i64 112, !16, i64 120, !14, i64 168, !14, i64 172, !24, i64 176, !28, i64 200, !30, i64 204, !7, i64 216, !14, i64 248, !7, i64 256, !31, i64 288, !7, i64 296, !14, i64 328, !32, i64 336, !30, i64 400, !30, i64 408, !14, i64 416}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"_ZTS13strcoordinate", !14, i64 0, !7, i64 8}
!14 = !{!"int", !10, i64 0}
!15 = !{!"short", !10, i64 0}
!16 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEE", !17, i64 0}
!17 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE", !18, i64 0}
!18 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !19, i64 0, !21, i64 8}
!19 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !20, i64 0}
!20 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!21 = !{!"_ZTSSt15_Rb_tree_header", !22, i64 0, !12, i64 32}
!22 = !{!"_ZTSSt18_Rb_tree_node_base", !23, i64 0, !9, i64 8, !9, i64 16, !9, i64 24}
!23 = !{!"_ZTSSt14_Rb_tree_color", !10, i64 0}
!24 = !{!"_ZTSSt6vectorIiSaIiEE", !25, i64 0}
!25 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!28 = !{!"_ZTSSt4pairIbbE", !29, i64 0, !29, i64 1}
!29 = !{!"bool", !10, i64 0}
!30 = !{!"_ZTSSt4pairIiiE", !14, i64 0, !14, i64 4}
!31 = !{!"double", !10, i64 0}
!32 = !{!"_ZTSSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_E", !7, i64 0, !7, i64 32}
!33 = !{!6, !14, i64 248}
!34 = !{!6, !14, i64 72}
!35 = !{!6, !14, i64 32}
!36 = !{!6, !14, i64 400}
!37 = !{!6, !14, i64 404}
!38 = !{!6, !14, i64 408}
!39 = !{!6, !14, i64 412}
!40 = !{!6, !29, i64 200}
!41 = !{i8 0, i8 2}
!42 = !{}
!43 = !{!6, !29, i64 201}
!44 = distinct !{!44, !45}
!45 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass