; LLVM IR from QAQdev/mini-sql-engine :: thirdparty/googletest/src (gtest-all)

; 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.95" = type { %"struct.std::_Vector_base.96" }
%"struct.std::_Vector_base.96" = type { %"struct.std::_Vector_base<testing::internal::edit_distance::EditType, std::allocator<testing::internal::edit_distance::EditType>>::_Vector_impl" }
%"struct.std::_Vector_base<testing::internal::edit_distance::EditType, std::allocator<testing::internal::edit_distance::EditType>>::_Vector_impl" = type { %"struct.std::_Vector_base<testing::internal::edit_distance::EditType, std::allocator<testing::internal::edit_distance::EditType>>::_Vector_impl_data" }
%"struct.std::_Vector_base<testing::internal::edit_distance::EditType, std::allocator<testing::internal::edit_distance::EditType>>::_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] }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"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.testing::internal::edit_distance::(anonymous namespace)::Hunk" = type { i64, i64, i64, i64, i64, %"class.std::__cxx11::list", %"class.std::__cxx11::list", %"class.std::__cxx11::list" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<std::pair<char, const char *>, std::allocator<std::pair<char, const char *>>>::_List_impl" }
%"struct.std::__cxx11::_List_base<std::pair<char, const char *>, std::allocator<std::pair<char, const char *>>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.128" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal13edit_distance21CalculateOptimalEditsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EESC_(ptr dead_on_unwind noalias writable sret(%"class.std::vector.95") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing8internal13edit_distance17CreateUnifiedDiffERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EESC_m(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %3) #2 personality ptr @__gxx_personality_v0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i64, align 8
  %9 = alloca %"class.std::vector.95", align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i64, align 8
  %13 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca i64, align 8
  %17 = alloca %"class.testing::internal::edit_distance::(anonymous namespace)::Hunk", align 8
  %18 = alloca i64, align 8
  %19 = alloca i64, align 8
  %20 = alloca %"class.__gnu_cxx::__normal_iterator.128", align 8
  %21 = alloca %"class.__gnu_cxx::__normal_iterator.128", align 8
  %22 = alloca %"class.__gnu_cxx::__normal_iterator.128", align 8
  %23 = alloca %"class.__gnu_cxx::__normal_iterator.128", align 8
  %24 = alloca %"class.__gnu_cxx::__normal_iterator.128", align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %5, align 8
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store i64 %3, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %9) #4
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN7testing8internal13edit_distance21CalculateOptimalEditsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EESC_(ptr dead_on_unwind writable sret(%"class.std::vector.95") align 8 %9, ptr noundef nonnull align 8 dereferenceable(24) %27, ptr noundef nonnull align 8 dereferenceable(24) %28)
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  store i64 0, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  store i64 0, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  store i64 0, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 392, ptr %13) #4
  invoke void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %13)
          to label %29 unwind label %53

29:                                               ; preds = %4
  br label %30

30:                                               ; preds = %223, %29
  %31 = load i64, ptr %12, align 8, !tbaa !9
  %32 = call noundef i64 @_ZNKSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  %33 = icmp ult i64 %31, %32
  br i1 %33, label %34, label %228

34:                                               ; preds = %30
  br label %35

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

39:                                               ; preds = %35
  %40 = load i64, ptr %12, align 8, !tbaa !9
  %41 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %40) #4
  %42 = load i32, ptr %41, align 4, !tbaa !11
  %43 = icmp eq i32 %42, 0
  br label %44

44:                                               ; preds = %39, %35
  %45 = phi i1 [ false, %35 ], [ %43, %39 ]
  br i1 %45, label %46, label %57

46:                                               ; preds = %44
  %47 = load i64, ptr %10, align 8, !tbaa !9
  %48 = add i64 %47, 1
  store i64 %48, ptr %10, align 8, !tbaa !9
  %49 = load i64, ptr %11, align 8, !tbaa !9
  %50 = add i64 %49, 1
  store i64 %50, ptr %11, align 8, !tbaa !9
  %51 = load i64, ptr %12, align 8, !tbaa !9
  %52 = add i64 %51, 1
  store i64 %52, ptr %12, align 8, !tbaa !9
  br label %35, !llvm.loop !13

53:                                               ; preds = %4
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %14, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %15, align 4
  br label %235

57:                                               ; preds = %44
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #4
  %58 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %8)
          to label %59 unwind label %75

59:                                               ; preds = %57
  %60 = load i64, ptr %58, align 8, !tbaa !9
  store i64 %60, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 112, ptr %17) #4
  %61 = load i64, ptr %10, align 8, !tbaa !9
  %62 = load i64, ptr %16, align 8, !tbaa !9
  %63 = sub i64 %61, %62
  %64 = add i64 %63, 1
  %65 = load i64, ptr %11, align 8, !tbaa !9
  %66 = load i64, ptr %16, align 8, !tbaa !9
  %67 = sub i64 %65, %66
  %68 = add i64 %67, 1
  invoke void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14HunkC2Emm(ptr noundef nonnull align 8 dereferenceable(112) %17, i64 noundef %64, i64 noundef %68)
          to label %69 unwind label %79

69:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  %70 = load i64, ptr %16, align 8, !tbaa !9
  store i64 %70, ptr %18, align 8, !tbaa !9
  br label %71

71:                                               ; preds = %91, %69
  %72 = load i64, ptr %18, align 8, !tbaa !9
  %73 = icmp ugt i64 %72, 0
  br i1 %73, label %83, label %74

74:                                               ; preds = %71
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %98

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

79:                                               ; preds = %59
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %14, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %15, align 4
  br label %226

83:                                               ; preds = %71
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = load i64, ptr %10, align 8, !tbaa !9
  %86 = load i64, ptr %18, align 8, !tbaa !9
  %87 = sub i64 %85, %86
  %88 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %87) #4
  %89 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %88) #4
  invoke void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14Hunk8PushLineEcPKc(ptr noundef nonnull align 8 dereferenceable(112) %17, i8 noundef signext 32, ptr noundef %89)
          to label %90 unwind label %94

90:                                               ; preds = %83
  br label %91

91:                                               ; preds = %90
  %92 = load i64, ptr %18, align 8, !tbaa !9
  %93 = add i64 %92, -1
  store i64 %93, ptr %18, align 8, !tbaa !9
  br label %71, !llvm.loop !15

94:                                               ; preds = %83
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %14, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  br label %225

98:                                               ; preds = %74
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  store i64 0, ptr %19, align 8, !tbaa !9
  br label %99

99:                                               ; preds = %203, %98
  %100 = load i64, ptr %12, align 8, !tbaa !9
  %101 = call noundef i64 @_ZNKSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  %102 = icmp ult i64 %100, %101
  br i1 %102, label %103, label %206

103:                                              ; preds = %99
  %104 = load i64, ptr %19, align 8, !tbaa !9
  %105 = load i64, ptr %8, align 8, !tbaa !9
  %106 = icmp uge i64 %104, %105
  br i1 %106, label %107, label %146

107:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %108 = call ptr @_ZNKSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  %109 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.128", ptr %21, i32 0, i32 0
  store ptr %108, ptr %109, align 8
  %110 = load i64, ptr %12, align 8, !tbaa !9
  %111 = trunc i64 %110 to i32
  %112 = sext i32 %111 to i64
  %113 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7testing8internal13edit_distance8EditTypeESt6vectorIS4_SaIS4_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %21, i64 noundef %112) #4
  %114 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.128", ptr %20, i32 0, i32 0
  store ptr %113, ptr %114, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  br label %115

115:                                              ; preds = %125, %107
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  %116 = call ptr @_ZNKSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  %117 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.128", ptr %22, i32 0, i32 0
  store ptr %116, ptr %117, align 8
  %118 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7testing8internal13edit_distance8EditTypeESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %22) #4
  br i1 %118, label %119, label %123

119:                                              ; preds = %115
  %120 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7testing8internal13edit_distance8EditTypeESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #4
  %121 = load i32, ptr %120, align 4, !tbaa !11
  %122 = icmp eq i32 %121, 0
  br label %123

123:                                              ; preds = %119, %115
  %124 = phi i1 [ false, %115 ], [ %122, %119 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br i1 %124, label %125, label %127

125:                                              ; preds = %123
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7testing8internal13edit_distance8EditTypeESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %20) #4
  br label %115, !llvm.loop !16

127:                                              ; preds = %123
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %128 = call ptr @_ZNKSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  %129 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.128", ptr %23, i32 0, i32 0
  store ptr %128, ptr %129, align 8
  %130 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPKN7testing8internal13edit_distance8EditTypeESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %23) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  br i1 %130, label %139, label %131

131:                                              ; preds = %127
  %132 = call ptr @_ZNKSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  %133 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator.128", ptr %24, i32 0, i32 0
  store ptr %132, ptr %133, align 8
  %134 = call noundef i64 @_ZN9__gnu_cxxmiIPKN7testing8internal13edit_distance8EditTypeESt6vectorIS4_SaIS4_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSD_SG_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %24) #4
  %135 = load i64, ptr %12, align 8, !tbaa !9
  %136 = sub i64 %134, %135
  %137 = load i64, ptr %8, align 8, !tbaa !9
  %138 = icmp uge i64 %136, %137
  br label %139

139:                                              ; preds = %131, %127
  %140 = phi i1 [ true, %127 ], [ %138, %131 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  br i1 %140, label %141, label %142

141:                                              ; preds = %139
  store i32 9, ptr %25, align 4
  br label %143

142:                                              ; preds = %139
  store i32 0, ptr %25, align 4
  br label %143

143:                                              ; preds = %142, %141
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  %144 = load i32, ptr %25, align 4
  switch i32 %144, label %241 [
    i32 0, label %145
    i32 9, label %206
  ]

145:                                              ; preds = %143
  br label %146

146:                                              ; preds = %145, %103
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #4
  %147 = load i64, ptr %12, align 8, !tbaa !9
  %148 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %147) #4
  %149 = load i32, ptr %148, align 4, !tbaa !11
  store i32 %149, ptr %26, align 4, !tbaa !11
  %150 = load i32, ptr %26, align 4, !tbaa !11
  %151 = icmp eq i32 %150, 0
  br i1 %151, label %152, label %155

152:                                              ; preds = %146
  %153 = load i64, ptr %19, align 8, !tbaa !9
  %154 = add i64 %153, 1
  br label %156

155:                                              ; preds = %146
  br label %156

156:                                              ; preds = %155, %152
  %157 = phi i64 [ %154, %152 ], [ 0, %155 ]
  store i64 %157, ptr %19, align 8, !tbaa !9
  %158 = load i32, ptr %26, align 4, !tbaa !11
  %159 = icmp eq i32 %158, 0
  br i1 %159, label %166, label %160

160:                                              ; preds = %156
  %161 = load i32, ptr %26, align 4, !tbaa !11
  %162 = icmp eq i32 %161, 2
  br i1 %162, label %166, label %163

163:                                              ; preds = %160
  %164 = load i32, ptr %26, align 4, !tbaa !11
  %165 = icmp eq i32 %164, 3
  br i1 %165, label %166, label %180

166:                                              ; preds = %163, %160, %156
  %167 = load i32, ptr %26, align 4, !tbaa !11
  %168 = icmp eq i32 %167, 0
  %169 = zext i1 %168 to i64
  %170 = select i1 %168, i8 32, i8 45
  %171 = load ptr, ptr %6, align 8, !tbaa !5
  %172 = load i64, ptr %10, align 8, !tbaa !9
  %173 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %171, i64 noundef %172) #4
  %174 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %173) #4
  invoke void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14Hunk8PushLineEcPKc(ptr noundef nonnull align 8 dereferenceable(112) %17, i8 noundef signext %170, ptr noundef %174)
          to label %175 unwind label %176

175:                                              ; preds = %166
  br label %180

176:                                              ; preds = %186, %166
  %177 = landingpad { ptr, i32 }
          cleanup
  %178 = extractvalue { ptr, i32 } %177, 0
  store ptr %178, ptr %14, align 8
  %179 = extractvalue { ptr, i32 } %177, 1
  store i32 %179, ptr %15, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  br label %224

180:                                              ; preds = %175, %163
  %181 = load i32, ptr %26, align 4, !tbaa !11
  %182 = icmp eq i32 %181, 1
  br i1 %182, label %186, label %183

183:                                              ; preds = %180
  %184 = load i32, ptr %26, align 4, !tbaa !11
  %185 = icmp eq i32 %184, 3
  br i1 %185, label %186, label %192

186:                                              ; preds = %183, %180
  %187 = load ptr, ptr %7, align 8, !tbaa !5
  %188 = load i64, ptr %11, align 8, !tbaa !9
  %189 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %187, i64 noundef %188) #4
  %190 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %189) #4
  invoke void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14Hunk8PushLineEcPKc(ptr noundef nonnull align 8 dereferenceable(112) %17, i8 noundef signext 43, ptr noundef %190)
          to label %191 unwind label %176

191:                                              ; preds = %186
  br label %192

192:                                              ; preds = %191, %183
  %193 = load i32, ptr %26, align 4, !tbaa !11
  %194 = icmp ne i32 %193, 1
  %195 = zext i1 %194 to i64
  %196 = load i64, ptr %10, align 8, !tbaa !9
  %197 = add i64 %196, %195
  store i64 %197, ptr %10, align 8, !tbaa !9
  %198 = load i32, ptr %26, align 4, !tbaa !11
  %199 = icmp ne i32 %198, 2
  %200 = zext i1 %199 to i64
  %201 = load i64, ptr %11, align 8, !tbaa !9
  %202 = add i64 %201, %200
  store i64 %202, ptr %11, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #4
  br label %203

203:                                              ; preds = %192
  %204 = load i64, ptr %12, align 8, !tbaa !9
  %205 = add i64 %204, 1
  store i64 %205, ptr %12, align 8, !tbaa !9
  br label %99, !llvm.loop !17

206:                                              ; preds = %143, %99
  %207 = invoke noundef zeroext i1 @_ZNK7testing8internal13edit_distance12_GLOBAL__N_14Hunk9has_editsEv(ptr noundef nonnull align 8 dereferenceable(112) %17)
          to label %208 unwind label %210

208:                                              ; preds = %206
  br i1 %207, label %214, label %209

209:                                              ; preds = %208
  store i32 3, ptr %25, align 4
  br label %221

210:                                              ; preds = %218, %206
  %211 = landingpad { ptr, i32 }
          cleanup
  %212 = extractvalue { ptr, i32 } %211, 0
  store ptr %212, ptr %14, align 8
  %213 = extractvalue { ptr, i32 } %211, 1
  store i32 %213, ptr %15, align 4
  br label %224

214:                                              ; preds = %208
  %215 = icmp eq ptr %13, null
  br i1 %215, label %218, label %216

216:                                              ; preds = %214
  %217 = getelementptr inbounds i8, ptr %13, i64 16
  br label %218

218:                                              ; preds = %216, %214
  %219 = phi ptr [ %217, %216 ], [ null, %214 ]
  invoke void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14Hunk7PrintToEPSo(ptr noundef nonnull align 8 dereferenceable(112) %17, ptr noundef %219)
          to label %220 unwind label %210

220:                                              ; preds = %218
  store i32 0, ptr %25, align 4
  br label %221

221:                                              ; preds = %220, %209
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14HunkD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %17) #4
  call void @llvm.lifetime.end.p0(i64 112, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  %222 = load i32, ptr %25, align 4
  switch i32 %222, label %241 [
    i32 0, label %223
    i32 3, label %228
  ]

223:                                              ; preds = %221
  br label %30, !llvm.loop !18

224:                                              ; preds = %210, %176
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  br label %225

225:                                              ; preds = %224, %94
  call void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14HunkD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %17) #4
  br label %226

226:                                              ; preds = %225, %79
  call void @llvm.lifetime.end.p0(i64 112, ptr %17) #4
  br label %227

227:                                              ; preds = %226, %75
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #4
  br label %234

228:                                              ; preds = %221, %30
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(128) %13)
          to label %229 unwind label %230

229:                                              ; preds = %228
  store i32 1, ptr %25, align 4
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %13) #4
  call void @llvm.lifetime.end.p0(i64 392, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @_ZNSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #4
  ret void

230:                                              ; preds = %228
  %231 = landingpad { ptr, i32 }
          cleanup
  %232 = extractvalue { ptr, i32 } %231, 0
  store ptr %232, ptr %14, align 8
  %233 = extractvalue { ptr, i32 } %231, 1
  store i32 %233, ptr %15, align 4
  br label %234

234:                                              ; preds = %230, %227
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %13) #4
  br label %235

235:                                              ; preds = %234, %53
  call void @llvm.lifetime.end.p0(i64 392, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  call void @_ZNSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %9) #4
  br label %236

236:                                              ; preds = %235
  %237 = load ptr, ptr %14, align 8
  %238 = load i32, ptr %15, align 4
  %239 = insertvalue { ptr, i32 } poison, ptr %237, 0
  %240 = insertvalue { ptr, i32 } %239, i32 %238, 1
  resume { ptr, i32 } %240

241:                                              ; preds = %221, %143
  unreachable
}

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14HunkC2Emm(ptr noundef nonnull align 8 dereferenceable(112), i64 noundef, i64 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14Hunk8PushLineEcPKc(ptr noundef nonnull align 8 dereferenceable(112), i8 noundef signext, ptr noundef) #2 align 2

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN9__gnu_cxxmiIPKN7testing8internal13edit_distance8EditTypeESt6vectorIS4_SaIS4_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSD_SG_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZNK7testing8internal13edit_distance12_GLOBAL__N_14Hunk9has_editsEv(ptr noundef nonnull align 8 dereferenceable(112)) #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14Hunk7PrintToEPSo(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14HunkD2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128)) unnamed_addr #1 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 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, !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 = !{!12, !12, i64 0}
!12 = !{!"_ZTSN7testing8internal13edit_distance8EditTypeE", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}
!16 = distinct !{!16, !14}
!17 = distinct !{!17, !14}
!18 = distinct !{!18, !14}


; 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.95" = type { %"struct.std::_Vector_base.96" }
%"struct.std::_Vector_base.96" = type { %"struct.std::_Vector_base<testing::internal::edit_distance::EditType, std::allocator<testing::internal::edit_distance::EditType>>::_Vector_impl" }
%"struct.std::_Vector_base<testing::internal::edit_distance::EditType, std::allocator<testing::internal::edit_distance::EditType>>::_Vector_impl" = type { %"struct.std::_Vector_base<testing::internal::edit_distance::EditType, std::allocator<testing::internal::edit_distance::EditType>>::_Vector_impl_data" }
%"struct.std::_Vector_base<testing::internal::edit_distance::EditType, std::allocator<testing::internal::edit_distance::EditType>>::_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] }
%"class.std::__cxx11::basic_stringstream" = type { %"class.std::basic_iostream.base", %"class.std::__cxx11::basic_stringbuf", %"class.std::basic_ios" }
%"class.std::basic_iostream.base" = type { %"class.std::basic_istream.base", %"class.std::basic_ostream.base" }
%"class.std::basic_istream.base" = type { ptr, i64 }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::__cxx11::basic_stringbuf" = type { %"class.std::basic_streambuf", i32, %"class.std::__cxx11::basic_string" }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%"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.testing::internal::edit_distance::(anonymous namespace)::Hunk" = type { i64, i64, i64, i64, i64, %"class.std::__cxx11::list", %"class.std::__cxx11::list", %"class.std::__cxx11::list" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<std::pair<char, const char *>, std::allocator<std::pair<char, const char *>>>::_List_impl" }
%"struct.std::__cxx11::_List_base<std::pair<char, const char *>, std::allocator<std::pair<char, const char *>>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }
%"class.__gnu_cxx::__normal_iterator.128" = type { ptr }

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

declare i32 @__gxx_personality_v0(...)

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

; 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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7testing8internal13edit_distance21CalculateOptimalEditsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EESC_(ptr dead_on_unwind noalias writable sret(%"class.std::vector.95") align 8, ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7testing8internal13edit_distance17CreateUnifiedDiffERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EESC_m(ptr dead_on_unwind noalias writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %3) local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %5 = alloca i64, align 8
  %6 = alloca %"class.std::vector.95", align 8
  %7 = alloca i64, align 8
  %8 = alloca %"class.std::__cxx11::basic_stringstream", align 8
  %9 = alloca %"class.testing::internal::edit_distance::(anonymous namespace)::Hunk", align 8
  %10 = alloca %"class.__gnu_cxx::__normal_iterator.128", align 8
  %11 = alloca %"class.__gnu_cxx::__normal_iterator.128", align 8
  %12 = alloca %"class.__gnu_cxx::__normal_iterator.128", align 8
  %13 = alloca %"class.__gnu_cxx::__normal_iterator.128", align 8
  %14 = alloca %"class.__gnu_cxx::__normal_iterator.128", align 8
  store i64 %3, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  call void @_ZN7testing8internal13edit_distance21CalculateOptimalEditsERKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS8_EESC_(ptr dead_on_unwind nonnull writable sret(%"class.std::vector.95") align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  store i64 0, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 392, ptr nonnull %8) #4
  invoke void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(128) %8)
          to label %.preheader77 unwind label %29

.preheader77:                                     ; preds = %4
  %15 = call noundef i64 @_ZNKSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  %.not107 = icmp eq i64 %15, 0
  br i1 %.not107, label %.loopexit78, label %.preheader76.lr.ph

.preheader76.lr.ph:                               ; preds = %.preheader77
  %16 = getelementptr inbounds i8, ptr %8, i64 16
  br label %.preheader76

.preheader76:                                     ; preds = %.preheader76.lr.ph, %102
  %.0106 = phi i64 [ 0, %.preheader76.lr.ph ], [ %.282, %102 ]
  %.051105 = phi i64 [ 0, %.preheader76.lr.ph ], [ %.25387, %102 ]
  %17 = call noundef i64 @_ZNKSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  %18 = icmp ult i64 %.051105, %17
  br i1 %18, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %.preheader76, %22
  %.190 = phi i64 [ %25, %22 ], [ %.0106, %.preheader76 ]
  %.15289 = phi i64 [ %26, %22 ], [ %.051105, %.preheader76 ]
  %19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.15289) #4
  %20 = load i32, ptr %19, align 4, !tbaa !9
  %21 = icmp eq i32 %20, 0
  br i1 %21, label %22, label %.critedge

22:                                               ; preds = %.lr.ph
  %23 = load i64, ptr %7, align 8, !tbaa !5
  %24 = add i64 %23, 1
  store i64 %24, ptr %7, align 8, !tbaa !5
  %25 = add i64 %.190, 1
  %26 = add nuw i64 %.15289, 1
  %27 = call noundef i64 @_ZNKSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  %28 = icmp ult i64 %26, %27
  br i1 %28, label %.lr.ph, label %.critedge, !llvm.loop !11

29:                                               ; preds = %4
  %30 = landingpad { ptr, i32 }
          cleanup
  br label %110

.critedge:                                        ; preds = %.lr.ph, %22, %.preheader76
  %.152.lcssa = phi i64 [ %.051105, %.preheader76 ], [ %26, %22 ], [ %.15289, %.lr.ph ]
  %.1.lcssa = phi i64 [ %.0106, %.preheader76 ], [ %25, %22 ], [ %.190, %.lr.ph ]
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minImERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %5)
  %32 = load i64, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 112, ptr nonnull %9) #4
  %33 = load i64, ptr %7, align 8, !tbaa !5
  %reass.sub = sub i64 %33, %32
  %34 = add i64 %reass.sub, 1
  %35 = add i64 %.1.lcssa, 1
  %36 = sub i64 %35, %32
  call void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14HunkC2Emm(ptr noundef nonnull align 8 dereferenceable(112) %9, i64 noundef %34, i64 noundef %36)
  %.not95 = icmp eq i64 %32, 0
  br i1 %.not95, label %.preheader, label %.lr.ph97

.preheader:                                       ; preds = %43, %.critedge
  %37 = call noundef i64 @_ZNKSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  %38 = icmp ult i64 %.152.lcssa, %37
  br i1 %38, label %.lr.ph102, label %.loopexit75

.lr.ph97:                                         ; preds = %.critedge, %43
  %.05096 = phi i64 [ %44, %43 ], [ %32, %.critedge ]
  %39 = load i64, ptr %7, align 8, !tbaa !5
  %40 = sub i64 %39, %.05096
  %41 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %40) #4
  %42 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %41) #4
  invoke void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14Hunk8PushLineEcPKc(ptr noundef nonnull align 8 dereferenceable(112) %9, i8 noundef signext 32, ptr noundef %42)
          to label %43 unwind label %45

43:                                               ; preds = %.lr.ph97
  %44 = add i64 %.05096, -1
  %.not = icmp eq i64 %44, 0
  br i1 %.not, label %.preheader, label %.lr.ph97, !llvm.loop !13

45:                                               ; preds = %.lr.ph97
  %46 = landingpad { ptr, i32 }
          cleanup
  br label %105

.lr.ph102:                                        ; preds = %.preheader, %87
  %.2101 = phi i64 [ %94, %87 ], [ %.1.lcssa, %.preheader ]
  %.049100 = phi i64 [ %74, %87 ], [ 0, %.preheader ]
  %.25399 = phi i64 [ %95, %87 ], [ %.152.lcssa, %.preheader ]
  %47 = load i64, ptr %5, align 8, !tbaa !5
  %.not61 = icmp ult i64 %.049100, %47
  br i1 %.not61, label %69, label %48

48:                                               ; preds = %.lr.ph102
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #4
  %49 = call ptr @_ZNKSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  store ptr %49, ptr %11, align 8
  %sext = shl i64 %.25399, 32
  %50 = ashr exact i64 %sext, 32
  %51 = call ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7testing8internal13edit_distance8EditTypeESt6vectorIS4_SaIS4_EEEplEl(ptr noundef nonnull align 8 dereferenceable(8) %11, i64 noundef %50) #4
  store ptr %51, ptr %10, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  %52 = call ptr @_ZNKSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  store ptr %52, ptr %12, align 8
  %53 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7testing8internal13edit_distance8EditTypeESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  br i1 %53, label %.lr.ph98, label %.critedge2

.lr.ph98:                                         ; preds = %48, %57
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKN7testing8internal13edit_distance8EditTypeESt6vectorIS4_SaIS4_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  %55 = load i32, ptr %54, align 4, !tbaa !9
  %56 = icmp eq i32 %55, 0
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  br i1 %56, label %57, label %.loopexit

57:                                               ; preds = %.lr.ph98
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN9__gnu_cxx17__normal_iteratorIPKN7testing8internal13edit_distance8EditTypeESt6vectorIS4_SaIS4_EEEppEv(ptr noundef nonnull align 8 dereferenceable(8) %10) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  %59 = call ptr @_ZNKSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  store ptr %59, ptr %12, align 8
  %60 = call noundef zeroext i1 @_ZN9__gnu_cxxneIPKN7testing8internal13edit_distance8EditTypeESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %12) #4
  br i1 %60, label %.lr.ph98, label %.critedge2, !llvm.loop !14

.critedge2:                                       ; preds = %57, %48
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  br label %.loopexit

.loopexit:                                        ; preds = %.lr.ph98, %.critedge2
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #4
  %61 = call ptr @_ZNKSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  store ptr %61, ptr %13, align 8
  %62 = call noundef zeroext i1 @_ZN9__gnu_cxxeqIPKN7testing8internal13edit_distance8EditTypeESt6vectorIS4_SaIS4_EEEEbRKNS_17__normal_iteratorIT_T0_EESF_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %13) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #4
  br i1 %62, label %.critedge4, label %63

63:                                               ; preds = %.loopexit
  %64 = call ptr @_ZNKSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  store ptr %64, ptr %14, align 8
  %65 = call noundef i64 @_ZN9__gnu_cxxmiIPKN7testing8internal13edit_distance8EditTypeESt6vectorIS4_SaIS4_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSD_SG_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %14) #4
  %66 = sub i64 %65, %.25399
  %67 = load i64, ptr %5, align 8, !tbaa !5
  %.not62 = icmp ult i64 %66, %67
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  br i1 %.not62, label %68, label %.thread

.critedge4:                                       ; preds = %.loopexit
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #4
  br label %.thread

.thread:                                          ; preds = %63, %.critedge4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  br label %.loopexit75

68:                                               ; preds = %63
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  br label %69

69:                                               ; preds = %68, %.lr.ph102
  %70 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %.25399) #4
  %71 = load i32, ptr %70, align 4, !tbaa !9
  %72 = icmp eq i32 %71, 0
  %73 = add i64 %.049100, 1
  %74 = select i1 %72, i64 %73, i64 0
  switch i32 %71, label %82 [
    i32 3, label %75
    i32 2, label %75
    i32 0, label %75
  ]

75:                                               ; preds = %69, %69, %69
  %76 = select i1 %72, i8 32, i8 45
  %77 = load i64, ptr %7, align 8, !tbaa !5
  %78 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %77) #4
  %79 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %78) #4
  invoke void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14Hunk8PushLineEcPKc(ptr noundef nonnull align 8 dereferenceable(112) %9, i8 noundef signext %76, ptr noundef %79)
          to label %82 unwind label %80

80:                                               ; preds = %84, %75
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %105

82:                                               ; preds = %69, %75
  %83 = and i32 %71, -3
  %or.cond9 = icmp eq i32 %83, 1
  br i1 %or.cond9, label %84, label %87

84:                                               ; preds = %82
  %85 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZNKSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %.2101) #4
  %86 = call noundef ptr @_ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5c_strEv(ptr noundef nonnull align 8 dereferenceable(32) %85) #4
  invoke void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14Hunk8PushLineEcPKc(ptr noundef nonnull align 8 dereferenceable(112) %9, i8 noundef signext 43, ptr noundef %86)
          to label %87 unwind label %80

87:                                               ; preds = %84, %82
  %88 = icmp ne i32 %71, 1
  %89 = zext i1 %88 to i64
  %90 = load i64, ptr %7, align 8, !tbaa !5
  %91 = add i64 %90, %89
  store i64 %91, ptr %7, align 8, !tbaa !5
  %92 = icmp ne i32 %71, 2
  %93 = zext i1 %92 to i64
  %94 = add i64 %.2101, %93
  %95 = add nuw i64 %.25399, 1
  %96 = call noundef i64 @_ZNKSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  %97 = icmp ult i64 %95, %96
  br i1 %97, label %.lr.ph102, label %.loopexit75, !llvm.loop !15

.loopexit75:                                      ; preds = %87, %.preheader, %.thread
  %.25387 = phi i64 [ %.25399, %.thread ], [ %.152.lcssa, %.preheader ], [ %95, %87 ]
  %.282 = phi i64 [ %.2101, %.thread ], [ %.1.lcssa, %.preheader ], [ %94, %87 ]
  %98 = call noundef zeroext i1 @_ZNK7testing8internal13edit_distance12_GLOBAL__N_14Hunk9has_editsEv(ptr noundef nonnull align 8 dereferenceable(112) %9)
  br i1 %98, label %101, label %.thread72

.thread72:                                        ; preds = %.loopexit75
  call void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14HunkD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %9) #4
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %9) #4
  br label %.loopexit78

99:                                               ; preds = %101
  %100 = landingpad { ptr, i32 }
          cleanup
  br label %105

101:                                              ; preds = %.loopexit75
  invoke void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14Hunk7PrintToEPSo(ptr noundef nonnull align 8 dereferenceable(112) %9, ptr noundef nonnull %16)
          to label %102 unwind label %99

102:                                              ; preds = %101
  call void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14HunkD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %9) #4
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %9) #4
  %103 = call noundef i64 @_ZNKSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  %104 = icmp ult i64 %.25387, %103
  br i1 %104, label %.preheader76, label %.loopexit78

105:                                              ; preds = %80, %99, %45
  %.pn64 = phi { ptr, i32 } [ %46, %45 ], [ %100, %99 ], [ %81, %80 ]
  call void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14HunkD2Ev(ptr noundef nonnull align 8 dereferenceable(112) %9) #4
  call void @llvm.lifetime.end.p0(i64 112, ptr nonnull %9) #4
  br label %109

.loopexit78:                                      ; preds = %102, %.preheader77, %.thread72
  invoke void @_ZNKSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEE3strEv(ptr dead_on_unwind writable sret(%"class.std::__cxx11::basic_string") align 8 %0, ptr noundef nonnull align 8 dereferenceable(128) %8)
          to label %106 unwind label %107

106:                                              ; preds = %.loopexit78
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %8) #4
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @_ZNSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  ret void

107:                                              ; preds = %.loopexit78
  %108 = landingpad { ptr, i32 }
          cleanup
  br label %109

109:                                              ; preds = %107, %105
  %.pn64.pn = phi { ptr, i32 } [ %.pn64, %105 ], [ %108, %107 ]
  call void @_ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(128) %8) #4
  br label %110

110:                                              ; preds = %109, %29
  %.pn64.pn.pn = phi { ptr, i32 } [ %.pn64.pn, %109 ], [ %30, %29 ]
  call void @llvm.lifetime.end.p0(i64 392, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  call void @_ZNSt6vectorIN7testing8internal13edit_distance8EditTypeESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  resume { ptr, i32 } %.pn64.pn.pn
}

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14HunkC2Emm(ptr noundef nonnull align 8 dereferenceable(112), i64 noundef, i64 noundef) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14Hunk8PushLineEcPKc(ptr noundef nonnull align 8 dereferenceable(112), i8 noundef signext, ptr noundef) local_unnamed_addr #2 align 2

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

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

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

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

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZN9__gnu_cxxmiIPKN7testing8internal13edit_distance8EditTypeESt6vectorIS4_SaIS4_EEEENS_17__normal_iteratorIT_T0_E15difference_typeERKSD_SG_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef zeroext i1 @_ZNK7testing8internal13edit_distance12_GLOBAL__N_14Hunk9has_editsEv(ptr noundef nonnull align 8 dereferenceable(112)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare hidden void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14Hunk7PrintToEPSo(ptr noundef nonnull align 8 dereferenceable(112), ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare hidden void @_ZN7testing8internal13edit_distance12_GLOBAL__N_14HunkD2Ev(ptr noundef nonnull align 8 dereferenceable(112)) unnamed_addr #3 align 2

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

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

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 = { 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, !6, i64 0}
!6 = !{!"long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"_ZTSN7testing8internal13edit_distance8EditTypeE", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}
!14 = distinct !{!14, !12}
!15 = distinct !{!15, !12}


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