; LLVM IR from fritzsedlazeck/SURVIVOR :: src/convert/Process_Lumpy.ll (Z9get_entry9strregionsRSt6vectorI11strvcfentrySaIS1_EEi)

; 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"

%struct.strcoordinate = type { i32, %"class.std::__cxx11::basic_string" }
%"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.6", %"struct.std::pair", [2 x i8], %"struct.std::pair.11", [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.13", %"struct.std::pair.11", %"struct.std::pair.11", i32, [4 x i8] }>
%"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.6" = type { %"struct.std::_Vector_base.7" }
%"struct.std::_Vector_base.7" = 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.13" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string" }
%"struct.std::pair.11" = type { i32, i32 }
%struct.strregion = type { %struct.strcoordinate, %struct.strcoordinate }

; 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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z12equal_region13strcoordinateS_i(ptr noundef, ptr noundef, i32 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z9get_entry9strregionsRSt6vectorI11strvcfentrySaIS1_EEi(ptr noundef %0, i16 noundef signext %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %3) #2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i16, align 2
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i32, align 4
  %12 = alloca %struct.strcoordinate, align 8
  %13 = alloca %struct.strcoordinate, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %struct.strcoordinate, align 8
  %17 = alloca i1, align 1
  %18 = alloca %struct.strcoordinate, align 8
  %19 = alloca i1, align 1
  %20 = alloca %struct.strcoordinate, align 8
  %21 = alloca %struct.strcoordinate, align 8
  %22 = alloca %struct.strcoordinate, align 8
  %23 = alloca i1, align 1
  %24 = alloca %struct.strcoordinate, align 8
  %25 = alloca i1, align 1
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i16 %1, ptr %7, align 2, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store i32 %3, ptr %9, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store i64 0, ptr %10, align 8, !tbaa !13
  br label %26

26:                                               ; preds = %139, %4
  %27 = load i64, ptr %10, align 8, !tbaa !13
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = call noundef i64 @_ZNKSt6vectorI11strvcfentrySaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %28) #5
  %30 = icmp ult i64 %27, %29
  br i1 %30, label %32, label %31

31:                                               ; preds = %26
  store i32 2, ptr %11, align 4
  br label %142

32:                                               ; preds = %26
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = load i64, ptr %10, align 8, !tbaa !13
  %35 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %33, i64 noundef %34) #5
  %36 = getelementptr inbounds %struct.strvcfentry, ptr %35, i32 0, i32 3
  %37 = load i16, ptr %36, align 8, !tbaa !15
  %38 = sext i16 %37 to i32
  %39 = load i16, ptr %7, align 2, !tbaa !9
  %40 = sext i16 %39 to i32
  %41 = icmp eq i32 %38, %40
  br i1 %41, label %42, label %138

42:                                               ; preds = %32
  %43 = load ptr, ptr %8, align 8, !tbaa !5
  %44 = load i64, ptr %10, align 8, !tbaa !13
  %45 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %43, i64 noundef %44) #5
  %46 = getelementptr inbounds %struct.strvcfentry, ptr %45, i32 0, i32 1
  call void @_ZN13strcoordinateC2ERKS_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull align 8 dereferenceable(40) %46)
  %47 = getelementptr inbounds %struct.strregion, ptr %0, i32 0, i32 0
  store i1 false, ptr %17, align 1
  store i1 false, ptr %19, align 1
  invoke void @_ZN13strcoordinateC2ERKS_(ptr noundef nonnull align 8 dereferenceable(40) %13, ptr noundef nonnull align 8 dereferenceable(40) %47)
          to label %48 unwind label %72

48:                                               ; preds = %42
  %49 = load i32, ptr %9, align 4, !tbaa !11
  %50 = call noundef zeroext i1 @_Z12equal_region13strcoordinateS_i(ptr noundef %12, ptr noundef %13, i32 noundef %49)
  br i1 %50, label %51, label %61

51:                                               ; preds = %48
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = load i64, ptr %10, align 8, !tbaa !13
  %54 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %52, i64 noundef %53) #5
  %55 = getelementptr inbounds %struct.strvcfentry, ptr %54, i32 0, i32 2
  invoke void @_ZN13strcoordinateC2ERKS_(ptr noundef nonnull align 8 dereferenceable(40) %16, ptr noundef nonnull align 8 dereferenceable(40) %55)
          to label %56 unwind label %76

56:                                               ; preds = %51
  store i1 true, ptr %17, align 1
  %57 = getelementptr inbounds %struct.strregion, ptr %0, i32 0, i32 1
  invoke void @_ZN13strcoordinateC2ERKS_(ptr noundef nonnull align 8 dereferenceable(40) %18, ptr noundef nonnull align 8 dereferenceable(40) %57)
          to label %58 unwind label %80

58:                                               ; preds = %56
  store i1 true, ptr %19, align 1
  %59 = load i32, ptr %9, align 4, !tbaa !11
  %60 = call noundef zeroext i1 @_Z12equal_region13strcoordinateS_i(ptr noundef %16, ptr noundef %18, i32 noundef %59)
  br label %61

61:                                               ; preds = %58, %48
  %62 = phi i1 [ false, %48 ], [ %60, %58 ]
  %63 = load i1, ptr %19, align 1
  br i1 %63, label %64, label %65

64:                                               ; preds = %61
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %18) #5
  br label %65

65:                                               ; preds = %64, %61
  %66 = load i1, ptr %17, align 1
  br i1 %66, label %67, label %68

67:                                               ; preds = %65
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #5
  br label %68

68:                                               ; preds = %67, %65
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #5
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #5
  br i1 %62, label %69, label %89

69:                                               ; preds = %68
  %70 = load i64, ptr %10, align 8, !tbaa !13
  %71 = trunc i64 %70 to i32
  store i32 %71, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %142

72:                                               ; preds = %42
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %14, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %15, align 4
  br label %88

76:                                               ; preds = %51
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %14, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %15, align 4
  br label %87

80:                                               ; preds = %56
  %81 = landingpad { ptr, i32 }
          cleanup
  %82 = extractvalue { ptr, i32 } %81, 0
  store ptr %82, ptr %14, align 8
  %83 = extractvalue { ptr, i32 } %81, 1
  store i32 %83, ptr %15, align 4
  %84 = load i1, ptr %17, align 1
  br i1 %84, label %85, label %86

85:                                               ; preds = %80
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %16) #5
  br label %86

86:                                               ; preds = %85, %80
  br label %87

87:                                               ; preds = %86, %76
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #5
  br label %88

88:                                               ; preds = %87, %72
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #5
  br label %144

89:                                               ; preds = %68
  %90 = load ptr, ptr %8, align 8, !tbaa !5
  %91 = load i64, ptr %10, align 8, !tbaa !13
  %92 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %91) #5
  %93 = getelementptr inbounds %struct.strvcfentry, ptr %92, i32 0, i32 1
  call void @_ZN13strcoordinateC2ERKS_(ptr noundef nonnull align 8 dereferenceable(40) %20, ptr noundef nonnull align 8 dereferenceable(40) %93)
  %94 = getelementptr inbounds %struct.strregion, ptr %0, i32 0, i32 1
  store i1 false, ptr %23, align 1
  store i1 false, ptr %25, align 1
  invoke void @_ZN13strcoordinateC2ERKS_(ptr noundef nonnull align 8 dereferenceable(40) %21, ptr noundef nonnull align 8 dereferenceable(40) %94)
          to label %95 unwind label %119

95:                                               ; preds = %89
  %96 = load i32, ptr %9, align 4, !tbaa !11
  %97 = call noundef zeroext i1 @_Z12equal_region13strcoordinateS_i(ptr noundef %20, ptr noundef %21, i32 noundef %96)
  br i1 %97, label %98, label %108

98:                                               ; preds = %95
  %99 = load ptr, ptr %8, align 8, !tbaa !5
  %100 = load i64, ptr %10, align 8, !tbaa !13
  %101 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %100) #5
  %102 = getelementptr inbounds %struct.strvcfentry, ptr %101, i32 0, i32 2
  invoke void @_ZN13strcoordinateC2ERKS_(ptr noundef nonnull align 8 dereferenceable(40) %22, ptr noundef nonnull align 8 dereferenceable(40) %102)
          to label %103 unwind label %123

103:                                              ; preds = %98
  store i1 true, ptr %23, align 1
  %104 = getelementptr inbounds %struct.strregion, ptr %0, i32 0, i32 0
  invoke void @_ZN13strcoordinateC2ERKS_(ptr noundef nonnull align 8 dereferenceable(40) %24, ptr noundef nonnull align 8 dereferenceable(40) %104)
          to label %105 unwind label %127

105:                                              ; preds = %103
  store i1 true, ptr %25, align 1
  %106 = load i32, ptr %9, align 4, !tbaa !11
  %107 = call noundef zeroext i1 @_Z12equal_region13strcoordinateS_i(ptr noundef %22, ptr noundef %24, i32 noundef %106)
  br label %108

108:                                              ; preds = %105, %95
  %109 = phi i1 [ false, %95 ], [ %107, %105 ]
  %110 = load i1, ptr %25, align 1
  br i1 %110, label %111, label %112

111:                                              ; preds = %108
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %24) #5
  br label %112

112:                                              ; preds = %111, %108
  %113 = load i1, ptr %23, align 1
  br i1 %113, label %114, label %115

114:                                              ; preds = %112
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %22) #5
  br label %115

115:                                              ; preds = %114, %112
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #5
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #5
  br i1 %109, label %116, label %136

116:                                              ; preds = %115
  %117 = load i64, ptr %10, align 8, !tbaa !13
  %118 = trunc i64 %117 to i32
  store i32 %118, ptr %5, align 4
  store i32 1, ptr %11, align 4
  br label %142

119:                                              ; preds = %89
  %120 = landingpad { ptr, i32 }
          cleanup
  %121 = extractvalue { ptr, i32 } %120, 0
  store ptr %121, ptr %14, align 8
  %122 = extractvalue { ptr, i32 } %120, 1
  store i32 %122, ptr %15, align 4
  br label %135

123:                                              ; preds = %98
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %14, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %15, align 4
  br label %134

127:                                              ; preds = %103
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %14, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %15, align 4
  %131 = load i1, ptr %23, align 1
  br i1 %131, label %132, label %133

132:                                              ; preds = %127
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %22) #5
  br label %133

133:                                              ; preds = %132, %127
  br label %134

134:                                              ; preds = %133, %123
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %21) #5
  br label %135

135:                                              ; preds = %134, %119
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %20) #5
  br label %144

136:                                              ; preds = %115
  br label %137

137:                                              ; preds = %136
  br label %138

138:                                              ; preds = %137, %32
  br label %139

139:                                              ; preds = %138
  %140 = load i64, ptr %10, align 8, !tbaa !13
  %141 = add i64 %140, 1
  store i64 %141, ptr %10, align 8, !tbaa !13
  br label %26, !llvm.loop !37

142:                                              ; preds = %116, %69, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  %143 = load i32, ptr %11, align 4
  switch i32 %143, label %153 [
    i32 2, label %145
    i32 1, label %146
  ]

144:                                              ; preds = %135, %88
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %148

145:                                              ; preds = %142
  store i32 -1, ptr %5, align 4
  br label %146

146:                                              ; preds = %145, %142
  %147 = load i32, ptr %5, align 4
  ret i32 %147

148:                                              ; preds = %144
  %149 = load ptr, ptr %14, align 8
  %150 = load i32, ptr %15, align 4
  %151 = insertvalue { ptr, i32 } poison, ptr %149, 0
  %152 = insertvalue { ptr, i32 } %151, i32 %150, 1
  resume { ptr, i32 } %152

153:                                              ; preds = %142
  unreachable
}

; 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: inlinehint mustprogress uwtable
declare dso_local void @_ZN13strcoordinateC2ERKS_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

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

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 = { 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 #3 = { 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 #4 = { 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 #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 = !{!"short", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!16, !10, i64 112}
!16 = !{!"_ZTS11strvcfentry", !17, i64 0, !19, i64 32, !19, i64 72, !10, i64 112, !20, i64 120, !12, i64 168, !12, i64 172, !28, i64 176, !32, i64 200, !34, i64 204, !17, i64 216, !12, i64 248, !17, i64 256, !35, i64 288, !17, i64 296, !12, i64 328, !36, i64 336, !34, i64 400, !34, i64 408, !12, i64 416}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !18, i64 0, !14, i64 8, !7, i64 16}
!18 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!19 = !{!"_ZTS13strcoordinate", !12, i64 0, !17, i64 8}
!20 = !{!"_ZTSSt3mapINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_St4lessIS5_ESaISt4pairIKS5_S5_EEE", !21, i64 0}
!21 = !{!"_ZTSSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE", !22, i64 0}
!22 = !{!"_ZTSNSt8_Rb_treeINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESt4pairIKS5_S5_ESt10_Select1stIS8_ESt4lessIS5_ESaIS8_EE13_Rb_tree_implISC_Lb1EEE", !23, i64 0, !25, i64 8}
!23 = !{!"_ZTSSt20_Rb_tree_key_compareISt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEEE", !24, i64 0}
!24 = !{!"_ZTSSt4lessINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEE"}
!25 = !{!"_ZTSSt15_Rb_tree_header", !26, i64 0, !14, i64 32}
!26 = !{!"_ZTSSt18_Rb_tree_node_base", !27, i64 0, !6, i64 8, !6, i64 16, !6, i64 24}
!27 = !{!"_ZTSSt14_Rb_tree_color", !7, i64 0}
!28 = !{!"_ZTSSt6vectorIiSaIiEE", !29, i64 0}
!29 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !31, i64 0}
!31 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!32 = !{!"_ZTSSt4pairIbbE", !33, i64 0, !33, i64 1}
!33 = !{!"bool", !7, i64 0}
!34 = !{!"_ZTSSt4pairIiiE", !12, i64 0, !12, i64 4}
!35 = !{!"double", !7, i64 0}
!36 = !{!"_ZTSSt4pairINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES5_E", !17, i64 0, !17, i64 32}
!37 = distinct !{!37, !38}
!38 = !{!"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"

%struct.strcoordinate = type { i32, %"class.std::__cxx11::basic_string" }
%"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] }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_Z12equal_region13strcoordinateS_i(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_Z9get_entry9strregionsRSt6vectorI11strvcfentrySaIS1_EEi(ptr noundef %0, i16 noundef signext %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i32 noundef %3) local_unnamed_addr #1 personality ptr @__gxx_personality_v0 {
  %5 = alloca %struct.strcoordinate, align 8
  %6 = alloca %struct.strcoordinate, align 8
  %7 = alloca %struct.strcoordinate, align 8
  %8 = alloca %struct.strcoordinate, align 8
  %9 = alloca %struct.strcoordinate, align 8
  %10 = alloca %struct.strcoordinate, align 8
  %11 = alloca %struct.strcoordinate, align 8
  %12 = alloca %struct.strcoordinate, align 8
  %13 = tail call noundef i64 @_ZNKSt6vectorI11strvcfentrySaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  %.not61.not = icmp eq i64 %13, 0
  br i1 %.not61.not, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %4
  %14 = getelementptr inbounds i8, ptr %0, i64 40
  br label %15

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

20:                                               ; preds = %15
  %21 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.03962) #4
  %22 = getelementptr inbounds i8, ptr %21, i64 32
  call void @_ZN13strcoordinateC2ERKS_(ptr noundef nonnull align 8 dereferenceable(40) %5, ptr noundef nonnull align 8 dereferenceable(40) %22)
  invoke void @_ZN13strcoordinateC2ERKS_(ptr noundef nonnull align 8 dereferenceable(40) %6, ptr noundef nonnull align 8 dereferenceable(40) %0)
          to label %23 unwind label %32

23:                                               ; preds = %20
  %24 = call noundef zeroext i1 @_Z12equal_region13strcoordinateS_i(ptr noundef nonnull %5, ptr noundef nonnull %6, i32 noundef %3)
  br i1 %24, label %25, label %.critedge51

25:                                               ; preds = %23
  %26 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.03962) #4
  %27 = getelementptr inbounds i8, ptr %26, i64 72
  invoke void @_ZN13strcoordinateC2ERKS_(ptr noundef nonnull align 8 dereferenceable(40) %7, ptr noundef nonnull align 8 dereferenceable(40) %27)
          to label %28 unwind label %34

28:                                               ; preds = %25
  invoke void @_ZN13strcoordinateC2ERKS_(ptr noundef nonnull align 8 dereferenceable(40) %8, ptr noundef nonnull align 8 dereferenceable(40) %14)
          to label %.critedge unwind label %36

.critedge:                                        ; preds = %28
  %29 = call noundef zeroext i1 @_Z12equal_region13strcoordinateS_i(ptr noundef nonnull %7, ptr noundef nonnull %8, i32 noundef %3)
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #4
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #4
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #4
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #4
  br i1 %29, label %30, label %39

30:                                               ; preds = %.critedge
  %31 = trunc i64 %.03962 to i32
  br label %.loopexit

32:                                               ; preds = %20
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %61

34:                                               ; preds = %25
  %35 = landingpad { ptr, i32 }
          cleanup
  br label %38

36:                                               ; preds = %28
  %37 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #4
  br label %38

38:                                               ; preds = %36, %34
  %.pn = phi { ptr, i32 } [ %37, %36 ], [ %35, %34 ]
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #4
  br label %61

.critedge51:                                      ; preds = %23
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #4
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %5) #4
  br label %39

39:                                               ; preds = %.critedge51, %.critedge
  %40 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.03962) #4
  %41 = getelementptr inbounds i8, ptr %40, i64 32
  call void @_ZN13strcoordinateC2ERKS_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull align 8 dereferenceable(40) %41)
  invoke void @_ZN13strcoordinateC2ERKS_(ptr noundef nonnull align 8 dereferenceable(40) %10, ptr noundef nonnull align 8 dereferenceable(40) %14)
          to label %42 unwind label %51

42:                                               ; preds = %39
  %43 = call noundef zeroext i1 @_Z12equal_region13strcoordinateS_i(ptr noundef nonnull %9, ptr noundef nonnull %10, i32 noundef %3)
  br i1 %43, label %44, label %.critedge52

44:                                               ; preds = %42
  %45 = call noundef nonnull align 8 dereferenceable(420) ptr @_ZNSt6vectorI11strvcfentrySaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.03962) #4
  %46 = getelementptr inbounds i8, ptr %45, i64 72
  invoke void @_ZN13strcoordinateC2ERKS_(ptr noundef nonnull align 8 dereferenceable(40) %11, ptr noundef nonnull align 8 dereferenceable(40) %46)
          to label %47 unwind label %53

47:                                               ; preds = %44
  invoke void @_ZN13strcoordinateC2ERKS_(ptr noundef nonnull align 8 dereferenceable(40) %12, ptr noundef nonnull align 8 dereferenceable(40) %0)
          to label %.critedge49 unwind label %55

.critedge49:                                      ; preds = %47
  %48 = call noundef zeroext i1 @_Z12equal_region13strcoordinateS_i(ptr noundef nonnull %11, ptr noundef nonnull %12, i32 noundef %3)
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #4
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #4
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #4
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #4
  br i1 %48, label %49, label %58

49:                                               ; preds = %.critedge49
  %50 = trunc i64 %.03962 to i32
  br label %.loopexit

51:                                               ; preds = %39
  %52 = landingpad { ptr, i32 }
          cleanup
  br label %61

53:                                               ; preds = %44
  %54 = landingpad { ptr, i32 }
          cleanup
  br label %57

55:                                               ; preds = %47
  %56 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #4
  br label %57

57:                                               ; preds = %55, %53
  %.pn44 = phi { ptr, i32 } [ %56, %55 ], [ %54, %53 ]
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #4
  br label %61

.critedge52:                                      ; preds = %42
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #4
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #4
  br label %58

58:                                               ; preds = %.critedge52, %15, %.critedge49
  %59 = add nuw i64 %.03962, 1
  %60 = call noundef i64 @_ZNKSt6vectorI11strvcfentrySaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #4
  %.not = icmp ult i64 %59, %60
  br i1 %.not, label %15, label %.loopexit, !llvm.loop !33

.loopexit:                                        ; preds = %58, %4, %49, %30
  %spec.select = phi i32 [ %31, %30 ], [ %50, %49 ], [ -1, %4 ], [ -1, %58 ]
  ret i32 %spec.select

61:                                               ; preds = %51, %57, %32, %38
  %.sink = phi ptr [ %5, %38 ], [ %5, %32 ], [ %9, %57 ], [ %9, %51 ]
  %.pn44.pn.pn = phi { ptr, i32 } [ %.pn, %38 ], [ %33, %32 ], [ %.pn44, %57 ], [ %52, %51 ]
  call void @_ZN13strcoordinateD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %.sink) #4
  resume { ptr, i32 } %.pn44.pn.pn
}

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

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

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

attributes #0 = { 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 #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 = { 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 #3 = { 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 #4 = { 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 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}


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