; LLVM IR from sp-nitech/SPTK :: src/math (dynamic_time_warping)

; 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.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::vector<(anonymous namespace)::Cell>, std::allocator<std::vector<(anonymous namespace)::Cell>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<(anonymous namespace)::Cell>, std::allocator<std::vector<(anonymous namespace)::Cell>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<(anonymous namespace)::Cell>, std::allocator<std::vector<(anonymous namespace)::Cell>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<(anonymous namespace)::Cell>, std::allocator<std::vector<(anonymous namespace)::Cell>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<(anonymous namespace)::Cell, std::allocator<(anonymous namespace)::Cell>>::_Vector_impl" }
%"struct.std::_Vector_base<(anonymous namespace)::Cell, std::allocator<(anonymous namespace)::Cell>>::_Vector_impl" = type { %"struct.std::_Vector_base<(anonymous namespace)::Cell, std::allocator<(anonymous namespace)::Cell>>::_Vector_impl_data" }
%"struct.std::_Vector_base<(anonymous namespace)::Cell, std::allocator<(anonymous namespace)::Cell>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.17" = type { i8 }
%"class.std::allocator.12" = type { i8 }
%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.sptk::DynamicTimeWarping" = type { ptr, i32, i32, %"class.sptk::DistanceCalculation", i8, i8, %"class.std::vector", %"class.std::vector.0" }
%"class.sptk::DistanceCalculation" = type <{ ptr, i32, i32, i8, [7 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<int, int>, std::allocator<std::pair<int, int>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"struct.std::pair" = type { i32, i32 }
%"struct.(anonymous namespace)::Cell" = type { double, i32, i32 }

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk18DynamicTimeWarping3RunERKSt6vectorIS1_IdSaIdEESaIS3_EES7_PS1_ISt4pairIiiESaIS9_EEPd(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %3, ptr noundef %4) #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca i1, align 1
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca %"class.std::vector.10", align 8
  %16 = alloca %"class.std::vector.15", align 8
  %17 = alloca %"class.std::allocator.17", align 1
  %18 = alloca ptr, align 8
  %19 = alloca i32, align 4
  %20 = alloca %"class.std::allocator.12", align 1
  %21 = alloca %"class.std::vector.10", align 8
  %22 = alloca %"class.std::vector.15", align 8
  %23 = alloca %"class.std::allocator.17", align 1
  %24 = alloca %"class.std::allocator.12", align 1
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca double, align 8
  %29 = alloca double, align 8
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca double, align 8
  %33 = alloca i32, align 4
  %34 = alloca i32, align 4
  %35 = alloca i32, align 4
  %36 = alloca i32, align 4
  %37 = alloca i32, align 4
  %38 = alloca double, align 8
  %39 = alloca i8, align 1
  %40 = alloca i32, align 4
  %41 = alloca i32, align 4
  %42 = alloca i32, align 4
  %43 = alloca i32, align 4
  %44 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %45 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  store ptr %0, ptr %7, align 8, !tbaa !5
  store ptr %1, ptr %8, align 8, !tbaa !5
  store ptr %2, ptr %9, align 8, !tbaa !5
  store ptr %3, ptr %10, align 8, !tbaa !5
  store ptr %4, ptr %11, align 8, !tbaa !5
  %46 = load ptr, ptr %7, align 8
  %47 = getelementptr inbounds %"class.sptk::DynamicTimeWarping", ptr %46, i32 0, i32 5
  %48 = load i8, ptr %47, align 1, !tbaa !9, !range !24, !noundef !25
  %49 = trunc i8 %48 to i1
  br i1 %49, label %50, label %62

50:                                               ; preds = %5
  %51 = load ptr, ptr %8, align 8, !tbaa !5
  %52 = call noundef zeroext i1 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %51) #6
  br i1 %52, label %62, label %53

53:                                               ; preds = %50
  %54 = load ptr, ptr %9, align 8, !tbaa !5
  %55 = call noundef zeroext i1 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %54) #6
  br i1 %55, label %62, label %56

56:                                               ; preds = %53
  %57 = load ptr, ptr %10, align 8, !tbaa !5
  %58 = icmp eq ptr null, %57
  br i1 %58, label %62, label %59

59:                                               ; preds = %56
  %60 = load ptr, ptr %11, align 8, !tbaa !5
  %61 = icmp eq ptr null, %60
  br i1 %61, label %62, label %63

62:                                               ; preds = %59, %56, %53, %50, %5
  store i1 false, ptr %6, align 1
  br label %462

63:                                               ; preds = %59
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  %64 = getelementptr inbounds %"class.sptk::DynamicTimeWarping", ptr %46, i32 0, i32 6
  %65 = call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %64) #6
  %66 = trunc i64 %65 to i32
  store i32 %66, ptr %12, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = call noundef i64 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %67) #6
  %69 = trunc i64 %68 to i32
  store i32 %69, ptr %13, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = call noundef i64 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #6
  %72 = trunc i64 %71 to i32
  store i32 %72, ptr %14, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 24, ptr %15) #6
  %73 = load i32, ptr %13, align 4, !tbaa !26
  %74 = sext i32 %73 to i64
  call void @llvm.lifetime.start.p0(i64 24, ptr %16) #6
  %75 = load i32, ptr %14, align 4, !tbaa !26
  %76 = sext i32 %75 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  call void @_ZNSaIN12_GLOBAL__N_14CellEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  invoke void @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %76, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %77 unwind label %90

77:                                               ; preds = %63
  call void @llvm.lifetime.start.p0(i64 1, ptr %20) #6
  call void @_ZNSaISt6vectorIN12_GLOBAL__N_14CellESaIS1_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  invoke void @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEC2EmRKS3_RKS4_(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %74, ptr noundef nonnull align 8 dereferenceable(24) %16, ptr noundef nonnull align 1 dereferenceable(1) %20)
          to label %78 unwind label %94

78:                                               ; preds = %77
  call void @_ZNSt15__new_allocatorISt6vectorIN12_GLOBAL__N_14CellESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #6
  call void @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  call void @_ZNSt15__new_allocatorIN12_GLOBAL__N_14CellEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr %21) #6
  %79 = load i32, ptr %13, align 4, !tbaa !26
  %80 = sext i32 %79 to i64
  call void @llvm.lifetime.start.p0(i64 24, ptr %22) #6
  %81 = load i32, ptr %14, align 4, !tbaa !26
  %82 = sext i32 %81 to i64
  call void @llvm.lifetime.start.p0(i64 1, ptr %23) #6
  call void @_ZNSaIN12_GLOBAL__N_14CellEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  invoke void @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %82, ptr noundef nonnull align 1 dereferenceable(1) %23)
          to label %83 unwind label %99

83:                                               ; preds = %78
  call void @llvm.lifetime.start.p0(i64 1, ptr %24) #6
  call void @_ZNSaISt6vectorIN12_GLOBAL__N_14CellESaIS1_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  invoke void @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEC2EmRKS3_RKS4_(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %80, ptr noundef nonnull align 8 dereferenceable(24) %22, ptr noundef nonnull align 1 dereferenceable(1) %24)
          to label %84 unwind label %103

84:                                               ; preds = %83
  call void @_ZNSt15__new_allocatorISt6vectorIN12_GLOBAL__N_14CellESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  call void @_ZNSt15__new_allocatorIN12_GLOBAL__N_14CellEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #6
  store i32 0, ptr %25, align 4, !tbaa !26
  br label %85

85:                                               ; preds = %309, %84
  %86 = load i32, ptr %25, align 4, !tbaa !26
  %87 = load i32, ptr %13, align 4, !tbaa !26
  %88 = icmp slt i32 %86, %87
  br i1 %88, label %108, label %89

89:                                               ; preds = %85
  store i32 2, ptr %26, align 4
  br label %312

90:                                               ; preds = %63
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %18, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %19, align 4
  br label %98

94:                                               ; preds = %77
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %18, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %19, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIN12_GLOBAL__N_14CellESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %20) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %20) #6
  call void @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %16) #6
  br label %98

98:                                               ; preds = %94, %90
  call void @_ZNSt15__new_allocatorIN12_GLOBAL__N_14CellEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %16) #6
  br label %461

99:                                               ; preds = %78
  %100 = landingpad { ptr, i32 }
          cleanup
  %101 = extractvalue { ptr, i32 } %100, 0
  store ptr %101, ptr %18, align 8
  %102 = extractvalue { ptr, i32 } %100, 1
  store i32 %102, ptr %19, align 4
  br label %107

103:                                              ; preds = %83
  %104 = landingpad { ptr, i32 }
          cleanup
  %105 = extractvalue { ptr, i32 } %104, 0
  store ptr %105, ptr %18, align 8
  %106 = extractvalue { ptr, i32 } %104, 1
  store i32 %106, ptr %19, align 4
  call void @_ZNSt15__new_allocatorISt6vectorIN12_GLOBAL__N_14CellESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %24) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %24) #6
  call void @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %22) #6
  br label %107

107:                                              ; preds = %103, %99
  call void @_ZNSt15__new_allocatorIN12_GLOBAL__N_14CellEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %23) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %23) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %22) #6
  br label %460

108:                                              ; preds = %85
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #6
  store i32 0, ptr %27, align 4, !tbaa !26
  br label %109

109:                                              ; preds = %303, %108
  %110 = load i32, ptr %27, align 4, !tbaa !26
  %111 = load i32, ptr %14, align 4, !tbaa !26
  %112 = icmp slt i32 %110, %111
  br i1 %112, label %114, label %113

113:                                              ; preds = %109
  store i32 5, ptr %26, align 4
  br label %306

114:                                              ; preds = %109
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #6
  %115 = getelementptr inbounds %"class.sptk::DynamicTimeWarping", ptr %46, i32 0, i32 3
  %116 = load ptr, ptr %8, align 8, !tbaa !5
  %117 = load i32, ptr %25, align 4, !tbaa !26
  %118 = sext i32 %117 to i64
  %119 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %118) #6
  %120 = load ptr, ptr %9, align 8, !tbaa !5
  %121 = load i32, ptr %27, align 4, !tbaa !26
  %122 = sext i32 %121 to i64
  %123 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef %122) #6
  %124 = invoke noundef zeroext i1 @_ZNK4sptk19DistanceCalculation3RunERKSt6vectorIdSaIdEES5_Pd(ptr noundef nonnull align 8 dereferenceable(17) %115, ptr noundef nonnull align 8 dereferenceable(24) %119, ptr noundef nonnull align 8 dereferenceable(24) %123, ptr noundef %28)
          to label %125 unwind label %127

125:                                              ; preds = %114
  br i1 %124, label %131, label %126

126:                                              ; preds = %125
  store i1 false, ptr %6, align 1
  store i32 1, ptr %26, align 4
  br label %300

127:                                              ; preds = %114
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %18, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  br label %459

131:                                              ; preds = %125
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #6
  %132 = load i32, ptr %25, align 4, !tbaa !26
  %133 = icmp eq i32 0, %132
  br i1 %133, label %134, label %139

134:                                              ; preds = %131
  %135 = load i32, ptr %27, align 4, !tbaa !26
  %136 = icmp eq i32 0, %135
  br i1 %136, label %137, label %139

137:                                              ; preds = %134
  %138 = load double, ptr %28, align 8, !tbaa !27
  br label %140

139:                                              ; preds = %134, %131
  br label %140

140:                                              ; preds = %139, %137
  %141 = phi double [ %138, %137 ], [ 0x7FEFFFFFFFFFFFFF, %139 ]
  store double %141, ptr %29, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #6
  store i32 -1, ptr %30, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #6
  store i32 -1, ptr %31, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #6
  store double 0x7FEFFFFFFFFFFFFF, ptr %32, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 4, ptr %33) #6
  store i32 -1, ptr %33, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %34) #6
  store i32 -1, ptr %34, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %35) #6
  store i32 0, ptr %35, align 4, !tbaa !26
  br label %142

142:                                              ; preds = %243, %140
  %143 = load i32, ptr %35, align 4, !tbaa !26
  %144 = load i32, ptr %12, align 4, !tbaa !26
  %145 = icmp slt i32 %143, %144
  br i1 %145, label %147, label %146

146:                                              ; preds = %142
  store i32 8, ptr %26, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %35) #6
  br label %246

147:                                              ; preds = %142
  call void @llvm.lifetime.start.p0(i64 4, ptr %36) #6
  %148 = load i32, ptr %25, align 4, !tbaa !26
  %149 = getelementptr inbounds %"class.sptk::DynamicTimeWarping", ptr %46, i32 0, i32 6
  %150 = load i32, ptr %35, align 4, !tbaa !26
  %151 = sext i32 %150 to i64
  %152 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %149, i64 noundef %151) #6
  %153 = getelementptr inbounds %"struct.std::pair", ptr %152, i32 0, i32 0
  %154 = load i32, ptr %153, align 4, !tbaa !29
  %155 = sub nsw i32 %148, %154
  store i32 %155, ptr %36, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %37) #6
  %156 = load i32, ptr %27, align 4, !tbaa !26
  %157 = getelementptr inbounds %"class.sptk::DynamicTimeWarping", ptr %46, i32 0, i32 6
  %158 = load i32, ptr %35, align 4, !tbaa !26
  %159 = sext i32 %158 to i64
  %160 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %157, i64 noundef %159) #6
  %161 = getelementptr inbounds %"struct.std::pair", ptr %160, i32 0, i32 1
  %162 = load i32, ptr %161, align 4, !tbaa !31
  %163 = sub nsw i32 %156, %162
  store i32 %163, ptr %37, align 4, !tbaa !26
  %164 = load i32, ptr %36, align 4, !tbaa !26
  %165 = icmp sle i32 0, %164
  br i1 %165, label %166, label %242

166:                                              ; preds = %147
  %167 = load i32, ptr %37, align 4, !tbaa !26
  %168 = icmp sle i32 0, %167
  br i1 %168, label %169, label %242

169:                                              ; preds = %166
  call void @llvm.lifetime.start.p0(i64 8, ptr %38) #6
  %170 = getelementptr inbounds %"class.sptk::DynamicTimeWarping", ptr %46, i32 0, i32 4
  %171 = load i8, ptr %170, align 8, !tbaa !32, !range !24, !noundef !25
  %172 = trunc i8 %171 to i1
  br i1 %172, label %173, label %197

173:                                              ; preds = %169
  %174 = load i32, ptr %36, align 4, !tbaa !26
  %175 = load i32, ptr %25, align 4, !tbaa !26
  %176 = icmp eq i32 %174, %175
  br i1 %176, label %181, label %177

177:                                              ; preds = %173
  %178 = load i32, ptr %37, align 4, !tbaa !26
  %179 = load i32, ptr %27, align 4, !tbaa !26
  %180 = icmp eq i32 %178, %179
  br i1 %180, label %181, label %197

181:                                              ; preds = %177, %173
  %182 = getelementptr inbounds %"class.sptk::DynamicTimeWarping", ptr %46, i32 0, i32 7
  %183 = load i32, ptr %35, align 4, !tbaa !26
  %184 = sext i32 %183 to i64
  %185 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %182, i64 noundef %184) #6
  %186 = load double, ptr %185, align 8, !tbaa !27
  %187 = load double, ptr %28, align 8, !tbaa !27
  %188 = load i32, ptr %36, align 4, !tbaa !26
  %189 = sext i32 %188 to i64
  %190 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %189) #6
  %191 = load i32, ptr %37, align 4, !tbaa !26
  %192 = sext i32 %191 to i64
  %193 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %190, i64 noundef %192) #6
  %194 = getelementptr inbounds %"struct.(anonymous namespace)::Cell", ptr %193, i32 0, i32 0
  %195 = load double, ptr %194, align 8, !tbaa !33
  %196 = call double @llvm.fmuladd.f64(double %186, double %187, double %195)
  store double %196, ptr %38, align 8, !tbaa !27
  br label %213

197:                                              ; preds = %177, %169
  %198 = getelementptr inbounds %"class.sptk::DynamicTimeWarping", ptr %46, i32 0, i32 7
  %199 = load i32, ptr %35, align 4, !tbaa !26
  %200 = sext i32 %199 to i64
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %198, i64 noundef %200) #6
  %202 = load double, ptr %201, align 8, !tbaa !27
  %203 = load double, ptr %28, align 8, !tbaa !27
  %204 = load i32, ptr %36, align 4, !tbaa !26
  %205 = sext i32 %204 to i64
  %206 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %205) #6
  %207 = load i32, ptr %37, align 4, !tbaa !26
  %208 = sext i32 %207 to i64
  %209 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %206, i64 noundef %208) #6
  %210 = getelementptr inbounds %"struct.(anonymous namespace)::Cell", ptr %209, i32 0, i32 0
  %211 = load double, ptr %210, align 8, !tbaa !33
  %212 = call double @llvm.fmuladd.f64(double %202, double %203, double %211)
  store double %212, ptr %38, align 8, !tbaa !27
  br label %213

213:                                              ; preds = %197, %181
  %214 = getelementptr inbounds %"class.sptk::DynamicTimeWarping", ptr %46, i32 0, i32 4
  %215 = load i8, ptr %214, align 8, !tbaa !32, !range !24, !noundef !25
  %216 = trunc i8 %215 to i1
  br i1 %216, label %217, label %233

217:                                              ; preds = %213
  %218 = load i32, ptr %36, align 4, !tbaa !26
  %219 = load i32, ptr %25, align 4, !tbaa !26
  %220 = icmp ne i32 %218, %219
  br i1 %220, label %221, label %233

221:                                              ; preds = %217
  %222 = load i32, ptr %37, align 4, !tbaa !26
  %223 = load i32, ptr %27, align 4, !tbaa !26
  %224 = icmp ne i32 %222, %223
  br i1 %224, label %225, label %233

225:                                              ; preds = %221
  %226 = load double, ptr %38, align 8, !tbaa !27
  %227 = load double, ptr %32, align 8, !tbaa !27
  %228 = fcmp olt double %226, %227
  br i1 %228, label %229, label %233

229:                                              ; preds = %225
  %230 = load double, ptr %38, align 8, !tbaa !27
  store double %230, ptr %32, align 8, !tbaa !27
  %231 = load i32, ptr %36, align 4, !tbaa !26
  store i32 %231, ptr %33, align 4, !tbaa !26
  %232 = load i32, ptr %37, align 4, !tbaa !26
  store i32 %232, ptr %34, align 4, !tbaa !26
  br label %233

233:                                              ; preds = %229, %225, %221, %217, %213
  %234 = load double, ptr %38, align 8, !tbaa !27
  %235 = load double, ptr %29, align 8, !tbaa !27
  %236 = fcmp olt double %234, %235
  br i1 %236, label %237, label %241

237:                                              ; preds = %233
  %238 = load double, ptr %38, align 8, !tbaa !27
  store double %238, ptr %29, align 8, !tbaa !27
  %239 = load i32, ptr %36, align 4, !tbaa !26
  store i32 %239, ptr %30, align 4, !tbaa !26
  %240 = load i32, ptr %37, align 4, !tbaa !26
  store i32 %240, ptr %31, align 4, !tbaa !26
  br label %241

241:                                              ; preds = %237, %233
  call void @llvm.lifetime.end.p0(i64 8, ptr %38) #6
  br label %242

242:                                              ; preds = %241, %166, %147
  call void @llvm.lifetime.end.p0(i64 4, ptr %37) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %36) #6
  br label %243

243:                                              ; preds = %242
  %244 = load i32, ptr %35, align 4, !tbaa !26
  %245 = add nsw i32 %244, 1
  store i32 %245, ptr %35, align 4, !tbaa !26
  br label %142, !llvm.loop !35

246:                                              ; preds = %146
  %247 = getelementptr inbounds %"class.sptk::DynamicTimeWarping", ptr %46, i32 0, i32 4
  %248 = load i8, ptr %247, align 8, !tbaa !32, !range !24, !noundef !25
  %249 = trunc i8 %248 to i1
  br i1 %249, label %250, label %275

250:                                              ; preds = %246
  %251 = load double, ptr %32, align 8, !tbaa !27
  %252 = load i32, ptr %25, align 4, !tbaa !26
  %253 = sext i32 %252 to i64
  %254 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %253) #6
  %255 = load i32, ptr %27, align 4, !tbaa !26
  %256 = sext i32 %255 to i64
  %257 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %254, i64 noundef %256) #6
  %258 = getelementptr inbounds %"struct.(anonymous namespace)::Cell", ptr %257, i32 0, i32 0
  store double %251, ptr %258, align 8, !tbaa !33
  %259 = load i32, ptr %33, align 4, !tbaa !26
  %260 = load i32, ptr %25, align 4, !tbaa !26
  %261 = sext i32 %260 to i64
  %262 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %261) #6
  %263 = load i32, ptr %27, align 4, !tbaa !26
  %264 = sext i32 %263 to i64
  %265 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %262, i64 noundef %264) #6
  %266 = getelementptr inbounds %"struct.(anonymous namespace)::Cell", ptr %265, i32 0, i32 1
  store i32 %259, ptr %266, align 8, !tbaa !37
  %267 = load i32, ptr %34, align 4, !tbaa !26
  %268 = load i32, ptr %25, align 4, !tbaa !26
  %269 = sext i32 %268 to i64
  %270 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %269) #6
  %271 = load i32, ptr %27, align 4, !tbaa !26
  %272 = sext i32 %271 to i64
  %273 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %270, i64 noundef %272) #6
  %274 = getelementptr inbounds %"struct.(anonymous namespace)::Cell", ptr %273, i32 0, i32 2
  store i32 %267, ptr %274, align 4, !tbaa !38
  br label %275

275:                                              ; preds = %250, %246
  %276 = load double, ptr %29, align 8, !tbaa !27
  %277 = load i32, ptr %25, align 4, !tbaa !26
  %278 = sext i32 %277 to i64
  %279 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %278) #6
  %280 = load i32, ptr %27, align 4, !tbaa !26
  %281 = sext i32 %280 to i64
  %282 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %279, i64 noundef %281) #6
  %283 = getelementptr inbounds %"struct.(anonymous namespace)::Cell", ptr %282, i32 0, i32 0
  store double %276, ptr %283, align 8, !tbaa !33
  %284 = load i32, ptr %30, align 4, !tbaa !26
  %285 = load i32, ptr %25, align 4, !tbaa !26
  %286 = sext i32 %285 to i64
  %287 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %286) #6
  %288 = load i32, ptr %27, align 4, !tbaa !26
  %289 = sext i32 %288 to i64
  %290 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %287, i64 noundef %289) #6
  %291 = getelementptr inbounds %"struct.(anonymous namespace)::Cell", ptr %290, i32 0, i32 1
  store i32 %284, ptr %291, align 8, !tbaa !37
  %292 = load i32, ptr %31, align 4, !tbaa !26
  %293 = load i32, ptr %25, align 4, !tbaa !26
  %294 = sext i32 %293 to i64
  %295 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %294) #6
  %296 = load i32, ptr %27, align 4, !tbaa !26
  %297 = sext i32 %296 to i64
  %298 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %295, i64 noundef %297) #6
  %299 = getelementptr inbounds %"struct.(anonymous namespace)::Cell", ptr %298, i32 0, i32 2
  store i32 %292, ptr %299, align 4, !tbaa !38
  call void @llvm.lifetime.end.p0(i64 4, ptr %34) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %33) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #6
  store i32 0, ptr %26, align 4
  br label %300

300:                                              ; preds = %275, %126
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #6
  %301 = load i32, ptr %26, align 4
  switch i32 %301, label %306 [
    i32 0, label %302
  ]

302:                                              ; preds = %300
  br label %303

303:                                              ; preds = %302
  %304 = load i32, ptr %27, align 4, !tbaa !26
  %305 = add nsw i32 %304, 1
  store i32 %305, ptr %27, align 4, !tbaa !26
  br label %109, !llvm.loop !39

306:                                              ; preds = %300, %113
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #6
  %307 = load i32, ptr %26, align 4
  switch i32 %307, label %312 [
    i32 5, label %308
  ]

308:                                              ; preds = %306
  br label %309

309:                                              ; preds = %308
  %310 = load i32, ptr %25, align 4, !tbaa !26
  %311 = add nsw i32 %310, 1
  store i32 %311, ptr %25, align 4, !tbaa !26
  br label %85, !llvm.loop !40

312:                                              ; preds = %306, %89
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #6
  %313 = load i32, ptr %26, align 4
  switch i32 %313, label %458 [
    i32 2, label %314
  ]

314:                                              ; preds = %312
  %315 = load i32, ptr %13, align 4, !tbaa !26
  %316 = sub nsw i32 %315, 1
  %317 = sext i32 %316 to i64
  %318 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %317) #6
  %319 = load i32, ptr %14, align 4, !tbaa !26
  %320 = sub nsw i32 %319, 1
  %321 = sext i32 %320 to i64
  %322 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %318, i64 noundef %321) #6
  %323 = getelementptr inbounds %"struct.(anonymous namespace)::Cell", ptr %322, i32 0, i32 0
  %324 = load double, ptr %323, align 8, !tbaa !33
  %325 = fcmp oeq double 0x7FEFFFFFFFFFFFFF, %324
  br i1 %325, label %326, label %327

326:                                              ; preds = %314
  store i1 false, ptr %6, align 1
  store i32 1, ptr %26, align 4
  br label %458

327:                                              ; preds = %314
  %328 = load i32, ptr %13, align 4, !tbaa !26
  %329 = sub nsw i32 %328, 1
  %330 = sext i32 %329 to i64
  %331 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %330) #6
  %332 = load i32, ptr %14, align 4, !tbaa !26
  %333 = sub nsw i32 %332, 1
  %334 = sext i32 %333 to i64
  %335 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %331, i64 noundef %334) #6
  %336 = getelementptr inbounds %"struct.(anonymous namespace)::Cell", ptr %335, i32 0, i32 0
  %337 = load double, ptr %336, align 8, !tbaa !33
  %338 = load i32, ptr %13, align 4, !tbaa !26
  %339 = load i32, ptr %14, align 4, !tbaa !26
  %340 = add nsw i32 %338, %339
  %341 = sitofp i32 %340 to double
  %342 = fdiv double %337, %341
  %343 = load ptr, ptr %11, align 8, !tbaa !5
  store double %342, ptr %343, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 1, ptr %39) #6
  store i8 0, ptr %39, align 1, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 4, ptr %40) #6
  %344 = load i32, ptr %13, align 4, !tbaa !26
  %345 = sub nsw i32 %344, 1
  store i32 %345, ptr %40, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %41) #6
  %346 = load i32, ptr %14, align 4, !tbaa !26
  %347 = sub nsw i32 %346, 1
  store i32 %347, ptr %41, align 4, !tbaa !26
  %348 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %348) #6
  %349 = load ptr, ptr %10, align 8, !tbaa !5
  %350 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJRiS5_EEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %349, ptr noundef nonnull align 4 dereferenceable(4) %40, ptr noundef nonnull align 4 dereferenceable(4) %41)
          to label %351 unwind label %422

351:                                              ; preds = %327
  br label %352

352:                                              ; preds = %438, %351
  %353 = load i32, ptr %40, align 4, !tbaa !26
  %354 = icmp sle i32 0, %353
  br i1 %354, label %355, label %358

355:                                              ; preds = %352
  %356 = load i32, ptr %41, align 4, !tbaa !26
  %357 = icmp sle i32 0, %356
  br label %358

358:                                              ; preds = %355, %352
  %359 = phi i1 [ false, %352 ], [ %357, %355 ]
  br i1 %359, label %360, label %445

360:                                              ; preds = %358
  call void @llvm.lifetime.start.p0(i64 4, ptr %42) #6
  %361 = getelementptr inbounds %"class.sptk::DynamicTimeWarping", ptr %46, i32 0, i32 4
  %362 = load i8, ptr %361, align 8, !tbaa !32, !range !24, !noundef !25
  %363 = trunc i8 %362 to i1
  br i1 %363, label %364, label %376

364:                                              ; preds = %360
  %365 = load i8, ptr %39, align 1, !tbaa !41, !range !24, !noundef !25
  %366 = trunc i8 %365 to i1
  br i1 %366, label %367, label %376

367:                                              ; preds = %364
  %368 = load i32, ptr %40, align 4, !tbaa !26
  %369 = sext i32 %368 to i64
  %370 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %369) #6
  %371 = load i32, ptr %41, align 4, !tbaa !26
  %372 = sext i32 %371 to i64
  %373 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %370, i64 noundef %372) #6
  %374 = getelementptr inbounds %"struct.(anonymous namespace)::Cell", ptr %373, i32 0, i32 1
  %375 = load i32, ptr %374, align 8, !tbaa !37
  br label %385

376:                                              ; preds = %364, %360
  %377 = load i32, ptr %40, align 4, !tbaa !26
  %378 = sext i32 %377 to i64
  %379 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %378) #6
  %380 = load i32, ptr %41, align 4, !tbaa !26
  %381 = sext i32 %380 to i64
  %382 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %379, i64 noundef %381) #6
  %383 = getelementptr inbounds %"struct.(anonymous namespace)::Cell", ptr %382, i32 0, i32 1
  %384 = load i32, ptr %383, align 8, !tbaa !37
  br label %385

385:                                              ; preds = %376, %367
  %386 = phi i32 [ %375, %367 ], [ %384, %376 ]
  store i32 %386, ptr %42, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 4, ptr %43) #6
  %387 = getelementptr inbounds %"class.sptk::DynamicTimeWarping", ptr %46, i32 0, i32 4
  %388 = load i8, ptr %387, align 8, !tbaa !32, !range !24, !noundef !25
  %389 = trunc i8 %388 to i1
  br i1 %389, label %390, label %402

390:                                              ; preds = %385
  %391 = load i8, ptr %39, align 1, !tbaa !41, !range !24, !noundef !25
  %392 = trunc i8 %391 to i1
  br i1 %392, label %393, label %402

393:                                              ; preds = %390
  %394 = load i32, ptr %40, align 4, !tbaa !26
  %395 = sext i32 %394 to i64
  %396 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %21, i64 noundef %395) #6
  %397 = load i32, ptr %41, align 4, !tbaa !26
  %398 = sext i32 %397 to i64
  %399 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %396, i64 noundef %398) #6
  %400 = getelementptr inbounds %"struct.(anonymous namespace)::Cell", ptr %399, i32 0, i32 2
  %401 = load i32, ptr %400, align 4, !tbaa !38
  br label %411

402:                                              ; preds = %390, %385
  %403 = load i32, ptr %40, align 4, !tbaa !26
  %404 = sext i32 %403 to i64
  %405 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %404) #6
  %406 = load i32, ptr %41, align 4, !tbaa !26
  %407 = sext i32 %406 to i64
  %408 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %405, i64 noundef %407) #6
  %409 = getelementptr inbounds %"struct.(anonymous namespace)::Cell", ptr %408, i32 0, i32 2
  %410 = load i32, ptr %409, align 4, !tbaa !38
  br label %411

411:                                              ; preds = %402, %393
  %412 = phi i32 [ %401, %393 ], [ %410, %402 ]
  store i32 %412, ptr %43, align 4, !tbaa !26
  %413 = load i32, ptr %42, align 4, !tbaa !26
  %414 = icmp sle i32 0, %413
  br i1 %414, label %415, label %430

415:                                              ; preds = %411
  %416 = load i32, ptr %43, align 4, !tbaa !26
  %417 = icmp sle i32 0, %416
  br i1 %417, label %418, label %430

418:                                              ; preds = %415
  %419 = load ptr, ptr %10, align 8, !tbaa !5
  %420 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJRKiS6_EEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %419, ptr noundef nonnull align 4 dereferenceable(4) %42, ptr noundef nonnull align 4 dereferenceable(4) %43)
          to label %421 unwind label %426

421:                                              ; preds = %418
  br label %430

422:                                              ; preds = %445, %327
  %423 = landingpad { ptr, i32 }
          cleanup
  %424 = extractvalue { ptr, i32 } %423, 0
  store ptr %424, ptr %18, align 8
  %425 = extractvalue { ptr, i32 } %423, 1
  store i32 %425, ptr %19, align 4
  br label %457

426:                                              ; preds = %418
  %427 = landingpad { ptr, i32 }
          cleanup
  %428 = extractvalue { ptr, i32 } %427, 0
  store ptr %428, ptr %18, align 8
  %429 = extractvalue { ptr, i32 } %427, 1
  store i32 %429, ptr %19, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  br label %457

430:                                              ; preds = %421, %415, %411
  %431 = load i32, ptr %42, align 4, !tbaa !26
  %432 = load i32, ptr %40, align 4, !tbaa !26
  %433 = icmp eq i32 %431, %432
  br i1 %433, label %438, label %434

434:                                              ; preds = %430
  %435 = load i32, ptr %43, align 4, !tbaa !26
  %436 = load i32, ptr %41, align 4, !tbaa !26
  %437 = icmp eq i32 %435, %436
  br label %438

438:                                              ; preds = %434, %430
  %439 = phi i1 [ true, %430 ], [ %437, %434 ]
  %440 = zext i1 %439 to i64
  %441 = select i1 %439, i1 true, i1 false
  %442 = zext i1 %441 to i8
  store i8 %442, ptr %39, align 1, !tbaa !41
  %443 = load i32, ptr %42, align 4, !tbaa !26
  store i32 %443, ptr %40, align 4, !tbaa !26
  %444 = load i32, ptr %43, align 4, !tbaa !26
  store i32 %444, ptr %41, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 4, ptr %43) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %42) #6
  br label %352, !llvm.loop !42

445:                                              ; preds = %358
  %446 = load ptr, ptr %10, align 8, !tbaa !5
  %447 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %446) #6
  %448 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %44, i32 0, i32 0
  store ptr %447, ptr %448, align 8
  %449 = load ptr, ptr %10, align 8, !tbaa !5
  %450 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %449) #6
  %451 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %45, i32 0, i32 0
  store ptr %450, ptr %451, align 8
  %452 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %44, i32 0, i32 0
  %453 = load ptr, ptr %452, align 8
  %454 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %45, i32 0, i32 0
  %455 = load ptr, ptr %454, align 8
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %453, ptr %455)
          to label %456 unwind label %422

456:                                              ; preds = %445
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #6
  store i1 true, ptr %6, align 1
  store i32 1, ptr %26, align 4
  br label %458

457:                                              ; preds = %426, %422
  call void @llvm.lifetime.end.p0(i64 4, ptr %41) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %40) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr %39) #6
  br label %459

458:                                              ; preds = %456, %326, %312
  call void @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %462

459:                                              ; preds = %457, %127
  call void @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %21) #6
  br label %460

460:                                              ; preds = %459, %107
  call void @llvm.lifetime.end.p0(i64 24, ptr %21) #6
  call void @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  br label %461

461:                                              ; preds = %460, %98
  call void @llvm.lifetime.end.p0(i64 24, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  br label %464

462:                                              ; preds = %458, %62
  %463 = load i1, ptr %6, align 1
  ret i1 %463

464:                                              ; preds = %461
  %465 = load ptr, ptr %18, align 8
  %466 = load i32, ptr %19, align 4
  %467 = insertvalue { ptr, i32 } poison, ptr %465, 0
  %468 = insertvalue { ptr, i32 } %467, i32 %466, 1
  resume { ptr, i32 } %468
}

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

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

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

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

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

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

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

declare noundef zeroext i1 @_ZNK4sptk19DistanceCalculation3RunERKSt6vectorIdSaIdEES5_Pd(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) #3

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) #5

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZNSt15__new_allocatorISt6vectorIN12_GLOBAL__N_14CellESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { 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, !15, i64 41}
!10 = !{!"_ZTSN4sptk18DynamicTimeWarpingE", !11, i64 8, !12, i64 12, !13, i64 16, !15, i64 40, !15, i64 41, !16, i64 48, !20, i64 72}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTSN4sptk18DynamicTimeWarping20LocalPathConstraintsE", !7, i64 0}
!13 = !{!"_ZTSN4sptk19DistanceCalculationE", !11, i64 8, !14, i64 12, !15, i64 16}
!14 = !{!"_ZTSN4sptk19DistanceCalculation15DistanceMetricsE", !7, i64 0}
!15 = !{!"bool", !7, i64 0}
!16 = !{!"_ZTSSt6vectorISt4pairIiiESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseISt4pairIiiESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseISt4pairIiiESaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseISt4pairIiiESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSSt6vectorIdSaIdEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!24 = !{i8 0, i8 2}
!25 = !{}
!26 = !{!11, !11, i64 0}
!27 = !{!28, !28, i64 0}
!28 = !{!"double", !7, i64 0}
!29 = !{!30, !11, i64 0}
!30 = !{!"_ZTSSt4pairIiiE", !11, i64 0, !11, i64 4}
!31 = !{!30, !11, i64 4}
!32 = !{!10, !15, i64 40}
!33 = !{!34, !28, i64 0}
!34 = !{!"_ZTSN12_GLOBAL__N_14CellE", !28, i64 0, !11, i64 8, !11, i64 12}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}
!37 = !{!34, !11, i64 8}
!38 = !{!34, !11, i64 12}
!39 = distinct !{!39, !36}
!40 = distinct !{!40, !36}
!41 = !{!15, !15, i64 0}
!42 = distinct !{!42, !36}


; 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.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = type { %"struct.std::_Vector_base<std::vector<(anonymous namespace)::Cell>, std::allocator<std::vector<(anonymous namespace)::Cell>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<(anonymous namespace)::Cell>, std::allocator<std::vector<(anonymous namespace)::Cell>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<(anonymous namespace)::Cell>, std::allocator<std::vector<(anonymous namespace)::Cell>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<(anonymous namespace)::Cell>, std::allocator<std::vector<(anonymous namespace)::Cell>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<(anonymous namespace)::Cell, std::allocator<(anonymous namespace)::Cell>>::_Vector_impl" }
%"struct.std::_Vector_base<(anonymous namespace)::Cell, std::allocator<(anonymous namespace)::Cell>>::_Vector_impl" = type { %"struct.std::_Vector_base<(anonymous namespace)::Cell, std::allocator<(anonymous namespace)::Cell>>::_Vector_impl_data" }
%"struct.std::_Vector_base<(anonymous namespace)::Cell, std::allocator<(anonymous namespace)::Cell>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::allocator.17" = type { i8 }
%"class.std::allocator.12" = type { i8 }

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZNK4sptk18DynamicTimeWarping3RunERKSt6vectorIS1_IdSaIdEESaIS3_EES7_PS1_ISt4pairIiiESaIS9_EEPd(ptr noundef nonnull align 8 dereferenceable(96) %0, ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef %3, ptr noundef writeonly %4) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.std::vector.10", align 8
  %7 = alloca %"class.std::vector.15", align 8
  %8 = alloca %"class.std::allocator.17", align 1
  %9 = alloca %"class.std::allocator.12", align 1
  %10 = alloca %"class.std::vector.10", align 8
  %11 = alloca %"class.std::vector.15", align 8
  %12 = alloca %"class.std::allocator.17", align 1
  %13 = alloca %"class.std::allocator.12", align 1
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = getelementptr inbounds i8, ptr %0, i64 41
  %20 = load i8, ptr %19, align 1, !tbaa !5, !range !23, !noundef !24
  %21 = trunc nuw i8 %20 to i1
  br i1 %21, label %22, label %197

22:                                               ; preds = %5
  %23 = tail call noundef zeroext i1 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  br i1 %23, label %197, label %24

24:                                               ; preds = %22
  %25 = tail call noundef zeroext i1 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE5emptyEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %26 = icmp eq ptr %3, null
  %or.cond = or i1 %26, %25
  %27 = icmp eq ptr %4, null
  %or.cond5 = or i1 %27, %or.cond
  br i1 %or.cond5, label %197, label %28

28:                                               ; preds = %24
  %29 = getelementptr inbounds i8, ptr %0, i64 48
  %30 = tail call noundef i64 @_ZNKSt6vectorISt4pairIiiESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  %31 = trunc i64 %30 to i32
  %32 = tail call noundef i64 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #6
  %33 = trunc i64 %32 to i32
  %34 = tail call noundef i64 @_ZNKSt6vectorIS_IdSaIdEESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #6
  %35 = trunc i64 %34 to i32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #6
  %sext = shl i64 %32, 32
  %36 = ashr exact i64 %sext, 32
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #6
  %sext149 = shl i64 %34, 32
  %37 = ashr exact i64 %sext149, 32
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSaIN12_GLOBAL__N_14CellEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %7, i64 noundef %37, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %38 unwind label %119

38:                                               ; preds = %28
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %9) #6
  call void @_ZNSaISt6vectorIN12_GLOBAL__N_14CellESaIS1_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  invoke void @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEC2EmRKS3_RKS4_(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %36, ptr noundef nonnull align 8 dereferenceable(24) %7, ptr noundef nonnull align 1 dereferenceable(1) %9)
          to label %39 unwind label %121

39:                                               ; preds = %38
  call void @_ZNSt15__new_allocatorISt6vectorIN12_GLOBAL__N_14CellESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  call void @_ZNSt15__new_allocatorIN12_GLOBAL__N_14CellEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %10) #6
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %11) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %12) #6
  call void @_ZNSaIN12_GLOBAL__N_14CellEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  invoke void @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEC2EmRKS2_(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %37, ptr noundef nonnull align 1 dereferenceable(1) %12)
          to label %40 unwind label %124

40:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %13) #6
  call void @_ZNSaISt6vectorIN12_GLOBAL__N_14CellESaIS1_EEEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  invoke void @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEC2EmRKS3_RKS4_(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %36, ptr noundef nonnull align 8 dereferenceable(24) %11, ptr noundef nonnull align 1 dereferenceable(1) %13)
          to label %41 unwind label %126

41:                                               ; preds = %40
  call void @_ZNSt15__new_allocatorISt6vectorIN12_GLOBAL__N_14CellESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  call void @_ZNSt15__new_allocatorIN12_GLOBAL__N_14CellEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  %.not153194 = icmp sgt i32 %33, 0
  br i1 %.not153194, label %.preheader178.lr.ph, label %.critedge172

.preheader178.lr.ph:                              ; preds = %41
  %.not191 = icmp sgt i32 %35, 0
  %42 = getelementptr inbounds i8, ptr %0, i64 16
  %43 = icmp sgt i32 %31, 0
  %44 = getelementptr inbounds i8, ptr %0, i64 40
  %45 = getelementptr inbounds i8, ptr %0, i64 72
  br i1 %.not191, label %.preheader178.us.preheader, label %.critedge172

.preheader178.us.preheader:                       ; preds = %.preheader178.lr.ph
  %wide.trip.count207 = and i64 %32, 2147483647
  %wide.trip.count202 = and i64 %34, 2147483647
  %wide.trip.count = and i64 %30, 2147483647
  br label %.preheader178.us

.preheader178.us:                                 ; preds = %.preheader178.us.preheader, %..critedge170_crit_edge.us
  %indvars.iv204 = phi i64 [ 0, %.preheader178.us.preheader ], [ %indvars.iv.next205, %..critedge170_crit_edge.us ]
  %46 = trunc nuw nsw i64 %indvars.iv204 to i32
  br label %56

47:                                               ; preds = %._crit_edge.us, %68
  %48 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv204) #6
  %49 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %indvars.iv199) #6
  store double %.0138.lcssa.us, ptr %49, align 8, !tbaa !25
  %50 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv204) #6
  %51 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %indvars.iv199) #6
  %52 = getelementptr inbounds i8, ptr %51, i64 8
  store i32 %.0135.lcssa.us, ptr %52, align 8, !tbaa !28
  %53 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %indvars.iv204) #6
  %54 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %indvars.iv199) #6
  %55 = getelementptr inbounds i8, ptr %54, i64 12
  store i32 %.0132.lcssa.us, ptr %55, align 4, !tbaa !29
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  %indvars.iv.next200 = add nuw nsw i64 %indvars.iv199, 1
  %exitcond203.not = icmp eq i64 %indvars.iv.next200, %wide.trip.count202
  br i1 %exitcond203.not, label %..critedge170_crit_edge.us, label %56, !llvm.loop !30

56:                                               ; preds = %.preheader178.us, %47
  %indvars.iv199 = phi i64 [ 0, %.preheader178.us ], [ %indvars.iv.next200, %47 ]
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  %57 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %1, i64 noundef %indvars.iv204) #6
  %58 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_IdSaIdEESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv199) #6
  %59 = invoke noundef zeroext i1 @_ZNK4sptk19DistanceCalculation3RunERKSt6vectorIdSaIdEES5_Pd(ptr noundef nonnull align 8 dereferenceable(17) %42, ptr noundef nonnull align 8 dereferenceable(24) %57, ptr noundef nonnull align 8 dereferenceable(24) %58, ptr noundef nonnull %14)
          to label %60 unwind label %.split.us

60:                                               ; preds = %56
  br i1 %59, label %61, label %.critedge

61:                                               ; preds = %60
  %62 = trunc nuw nsw i64 %indvars.iv199 to i32
  %63 = or i32 %62, %46
  %or.cond7.us = icmp eq i32 %63, 0
  %64 = load double, ptr %14, align 8
  %65 = select i1 %or.cond7.us, double %64, double 0x7FEFFFFFFFFFFFFF
  br i1 %43, label %.lr.ph.us, label %._crit_edge.us

._crit_edge.us:                                   ; preds = %117, %61
  %.0138.lcssa.us = phi double [ %65, %61 ], [ %.2140.us, %117 ]
  %.0135.lcssa.us = phi i32 [ -1, %61 ], [ %.2137.us, %117 ]
  %.0132.lcssa.us = phi i32 [ -1, %61 ], [ %.2134.us, %117 ]
  %.0129.lcssa.us = phi double [ 0x7FEFFFFFFFFFFFFF, %61 ], [ %.2131.us, %117 ]
  %.0126.lcssa.us = phi i32 [ -1, %61 ], [ %.2128.us, %117 ]
  %.0123.lcssa.us = phi i32 [ -1, %61 ], [ %.2125.us, %117 ]
  %66 = load i8, ptr %44, align 8, !tbaa !32, !range !23, !noundef !24
  %67 = trunc nuw i8 %66 to i1
  br i1 %67, label %68, label %47

68:                                               ; preds = %._crit_edge.us
  %69 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv204) #6
  %70 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %69, i64 noundef %indvars.iv199) #6
  store double %.0129.lcssa.us, ptr %70, align 8, !tbaa !25
  %71 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv204) #6
  %72 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %indvars.iv199) #6
  %73 = getelementptr inbounds i8, ptr %72, i64 8
  store i32 %.0126.lcssa.us, ptr %73, align 8, !tbaa !28
  %74 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %indvars.iv204) #6
  %75 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %74, i64 noundef %indvars.iv199) #6
  %76 = getelementptr inbounds i8, ptr %75, i64 12
  store i32 %.0123.lcssa.us, ptr %76, align 4, !tbaa !29
  br label %47

.lr.ph.us:                                        ; preds = %61, %117
  %indvars.iv = phi i64 [ %indvars.iv.next, %117 ], [ 0, %61 ]
  %.0123184.us = phi i32 [ %.2125.us, %117 ], [ -1, %61 ]
  %.0126183.us = phi i32 [ %.2128.us, %117 ], [ -1, %61 ]
  %.0129182.us = phi double [ %.2131.us, %117 ], [ 0x7FEFFFFFFFFFFFFF, %61 ]
  %.0132181.us = phi i32 [ %.2134.us, %117 ], [ -1, %61 ]
  %.0135180.us = phi i32 [ %.2137.us, %117 ], [ -1, %61 ]
  %.0138179.us = phi double [ %.2140.us, %117 ], [ %65, %61 ]
  %77 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %indvars.iv) #6
  %78 = load i32, ptr %77, align 4, !tbaa !33
  %79 = sub nsw i32 %46, %78
  %80 = call noundef nonnull align 4 dereferenceable(8) ptr @_ZNKSt6vectorISt4pairIiiESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %indvars.iv) #6
  %81 = getelementptr inbounds i8, ptr %80, i64 4
  %82 = load i32, ptr %81, align 4, !tbaa !35
  %83 = sub nsw i32 %62, %82
  %84 = icmp sgt i32 %79, -1
  %85 = icmp sgt i32 %83, -1
  %or.cond9.us = select i1 %84, i1 %85, i1 false
  br i1 %or.cond9.us, label %86, label %117

86:                                               ; preds = %.lr.ph.us
  %87 = load i8, ptr %44, align 8, !tbaa !32, !range !23, !noundef !24
  %88 = trunc nuw i8 %87 to i1
  br i1 %88, label %89, label %92

89:                                               ; preds = %86
  %90 = icmp eq i32 %78, 0
  %91 = icmp eq i32 %82, 0
  %or.cond164.us = select i1 %90, i1 true, i1 %91
  br i1 %or.cond164.us, label %102, label %92

92:                                               ; preds = %89, %86
  %93 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %indvars.iv) #6
  %94 = load double, ptr %93, align 8, !tbaa !36
  %95 = load double, ptr %14, align 8, !tbaa !36
  %96 = zext nneg i32 %79 to i64
  %97 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %96) #6
  %98 = zext nneg i32 %83 to i64
  %99 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %97, i64 noundef %98) #6
  %100 = load double, ptr %99, align 8, !tbaa !25
  %101 = call double @llvm.fmuladd.f64(double %94, double %95, double %100)
  br label %112

102:                                              ; preds = %89
  %103 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %indvars.iv) #6
  %104 = load double, ptr %103, align 8, !tbaa !36
  %105 = load double, ptr %14, align 8, !tbaa !36
  %106 = zext nneg i32 %79 to i64
  %107 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %10, i64 noundef %106) #6
  %108 = zext nneg i32 %83 to i64
  %109 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %108) #6
  %110 = load double, ptr %109, align 8, !tbaa !25
  %111 = call double @llvm.fmuladd.f64(double %104, double %105, double %110)
  br label %112

112:                                              ; preds = %102, %92
  %.0114.us = phi double [ %111, %102 ], [ %101, %92 ]
  %113 = load i8, ptr %44, align 8, !tbaa !32, !range !23, !noundef !24
  %114 = trunc nuw i8 %113 to i1
  %.not162.us = icmp ne i32 %78, 0
  %or.cond166.not.us = select i1 %114, i1 %.not162.us, i1 false
  %.not163.us = icmp ne i32 %82, 0
  %or.cond167.not177.us = select i1 %or.cond166.not.us, i1 %.not163.us, i1 false
  %115 = fcmp olt double %.0114.us, %.0129182.us
  %or.cond168.us = select i1 %or.cond167.not177.us, i1 %115, i1 false
  %.1130.us = select i1 %or.cond168.us, double %.0114.us, double %.0129182.us
  %.1127.us = select i1 %or.cond168.us, i32 %79, i32 %.0126183.us
  %.1124.us = select i1 %or.cond168.us, i32 %83, i32 %.0123184.us
  %116 = fcmp olt double %.0114.us, %.0138179.us
  %.1139.us = select i1 %116, double %.0114.us, double %.0138179.us
  %.1136.us = select i1 %116, i32 %79, i32 %.0135180.us
  %.1133.us = select i1 %116, i32 %83, i32 %.0132181.us
  br label %117

117:                                              ; preds = %112, %.lr.ph.us
  %.2140.us = phi double [ %.1139.us, %112 ], [ %.0138179.us, %.lr.ph.us ]
  %.2137.us = phi i32 [ %.1136.us, %112 ], [ %.0135180.us, %.lr.ph.us ]
  %.2134.us = phi i32 [ %.1133.us, %112 ], [ %.0132181.us, %.lr.ph.us ]
  %.2131.us = phi double [ %.1130.us, %112 ], [ %.0129182.us, %.lr.ph.us ]
  %.2128.us = phi i32 [ %.1127.us, %112 ], [ %.0126183.us, %.lr.ph.us ]
  %.2125.us = phi i32 [ %.1124.us, %112 ], [ %.0123184.us, %.lr.ph.us ]
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge.us, label %.lr.ph.us, !llvm.loop !37

..critedge170_crit_edge.us:                       ; preds = %47
  %indvars.iv.next205 = add nuw nsw i64 %indvars.iv204, 1
  %exitcond208.not = icmp eq i64 %indvars.iv.next205, %wide.trip.count207
  br i1 %exitcond208.not, label %.critedge172, label %.preheader178.us, !llvm.loop !38

.split.us:                                        ; preds = %56
  %118 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %194

119:                                              ; preds = %28
  %120 = landingpad { ptr, i32 }
          cleanup
  br label %123

121:                                              ; preds = %38
  %122 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIN12_GLOBAL__N_14CellESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %9) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %9) #6
  call void @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %7) #6
  br label %123

123:                                              ; preds = %121, %119
  %.pn = phi { ptr, i32 } [ %122, %121 ], [ %120, %119 ]
  call void @_ZNSt15__new_allocatorIN12_GLOBAL__N_14CellEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #6
  br label %196

124:                                              ; preds = %39
  %125 = landingpad { ptr, i32 }
          cleanup
  br label %128

126:                                              ; preds = %40
  %127 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorISt6vectorIN12_GLOBAL__N_14CellESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %13) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %13) #6
  call void @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %11) #6
  br label %128

128:                                              ; preds = %126, %124
  %.pn151 = phi { ptr, i32 } [ %127, %126 ], [ %125, %124 ]
  call void @_ZNSt15__new_allocatorIN12_GLOBAL__N_14CellEED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %12) #6
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %11) #6
  br label %195

.critedge:                                        ; preds = %60
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  br label %.loopexit

.critedge172:                                     ; preds = %..critedge170_crit_edge.us, %.preheader178.lr.ph, %41
  %129 = add nsw i32 %33, -1
  %130 = sext i32 %129 to i64
  %131 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %130) #6
  %132 = add nsw i32 %35, -1
  %133 = sext i32 %132 to i64
  %134 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %131, i64 noundef %133) #6
  %135 = load double, ptr %134, align 8, !tbaa !25
  %136 = fcmp oeq double %135, 0x7FEFFFFFFFFFFFFF
  br i1 %136, label %.loopexit, label %137

137:                                              ; preds = %.critedge172
  %138 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %6, i64 noundef %130) #6
  %139 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef %133) #6
  %140 = load double, ptr %139, align 8, !tbaa !25
  %141 = add nsw i32 %35, %33
  %142 = sitofp i32 %141 to double
  %143 = fdiv double %140, %142
  store double %143, ptr %4, align 8, !tbaa !36
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %15) #6
  store i32 %129, ptr %15, align 4, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %16) #6
  store i32 %132, ptr %16, align 4, !tbaa !39
  call void @_ZNSt6vectorISt4pairIiiESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %144 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJRiS5_EEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %15, ptr noundef nonnull align 4 dereferenceable(4) %16)
          to label %.preheader unwind label %175

.preheader:                                       ; preds = %137
  %145 = load i32, ptr %15, align 4, !tbaa !39
  %146 = icmp sgt i32 %145, -1
  %147 = load i32, ptr %16, align 4
  %148 = icmp sgt i32 %147, -1
  %149 = select i1 %146, i1 %148, i1 false
  br i1 %149, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %150 = getelementptr inbounds i8, ptr %0, i64 40
  br label %151

151:                                              ; preds = %.lr.ph, %179
  %152 = phi i32 [ %145, %.lr.ph ], [ %181, %179 ]
  %.0113196 = phi i1 [ false, %.lr.ph ], [ %186, %179 ]
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %17) #6
  %153 = load i8, ptr %150, align 8, !tbaa !32, !range !23, !noundef !24
  %154 = trunc nuw i8 %153 to i1
  %155 = select i1 %154, i1 %.0113196, i1 false
  %156 = zext nneg i32 %152 to i64
  %. = select i1 %155, ptr %10, ptr %6
  %157 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %., i64 noundef %156) #6
  %.sink212 = load i32, ptr %16, align 4, !tbaa !39
  %158 = sext i32 %.sink212 to i64
  %159 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %157, i64 noundef %158) #6
  %.in = getelementptr inbounds i8, ptr %159, i64 8
  %160 = load i32, ptr %.in, align 8, !tbaa !28
  store i32 %160, ptr %17, align 4, !tbaa !39
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %18) #6
  %161 = load i8, ptr %150, align 8, !tbaa !32, !range !23, !noundef !24
  %162 = trunc nuw i8 %161 to i1
  %163 = select i1 %162, i1 %.0113196, i1 false
  %164 = load i32, ptr %15, align 4, !tbaa !39
  %165 = sext i32 %164 to i64
  %.sink = select i1 %163, ptr %10, ptr %6
  %166 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.sink, i64 noundef %165) #6
  %.sink215 = load i32, ptr %16, align 4, !tbaa !39
  %167 = sext i32 %.sink215 to i64
  %168 = call noundef nonnull align 8 dereferenceable(16) ptr @_ZNSt6vectorIN12_GLOBAL__N_14CellESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %166, i64 noundef %167) #6
  %.in155 = getelementptr inbounds i8, ptr %168, i64 12
  %169 = load i32, ptr %.in155, align 4, !tbaa !29
  store i32 %169, ptr %18, align 4, !tbaa !39
  %170 = load i32, ptr %17, align 4, !tbaa !39
  %171 = icmp sgt i32 %170, -1
  %172 = icmp sgt i32 %169, -1
  %or.cond11 = select i1 %171, i1 %172, i1 false
  br i1 %or.cond11, label %173, label %179

173:                                              ; preds = %151
  %174 = invoke noundef nonnull align 4 dereferenceable(8) ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE12emplace_backIJRKiS6_EEERS1_DpOT_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 4 dereferenceable(4) %17, ptr noundef nonnull align 4 dereferenceable(4) %18)
          to label %._crit_edge209 unwind label %177

._crit_edge209:                                   ; preds = %173
  %.pre = load i32, ptr %17, align 4, !tbaa !39
  %.pre210 = load i32, ptr %18, align 4
  br label %179

175:                                              ; preds = %._crit_edge, %137
  %176 = landingpad { ptr, i32 }
          cleanup
  br label %193

177:                                              ; preds = %173
  %178 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  br label %193

179:                                              ; preds = %._crit_edge209, %151
  %180 = phi i32 [ %.pre210, %._crit_edge209 ], [ %169, %151 ]
  %181 = phi i32 [ %.pre, %._crit_edge209 ], [ %170, %151 ]
  %182 = load i32, ptr %15, align 4, !tbaa !39
  %183 = icmp eq i32 %181, %182
  %184 = load i32, ptr %16, align 4
  %185 = icmp eq i32 %180, %184
  %186 = select i1 %183, i1 true, i1 %185
  store i32 %181, ptr %15, align 4, !tbaa !39
  store i32 %180, ptr %16, align 4, !tbaa !39
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %18) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %17) #6
  %187 = icmp sgt i32 %181, -1
  %188 = icmp sgt i32 %180, -1
  %189 = select i1 %187, i1 %188, i1 false
  br i1 %189, label %151, label %._crit_edge, !llvm.loop !40

._crit_edge:                                      ; preds = %179, %.preheader
  %190 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %191 = call ptr @_ZNSt6vectorISt4pairIiiESaIS1_EE3endEv(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  invoke void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr %190, ptr %191)
          to label %192 unwind label %175

192:                                              ; preds = %._crit_edge
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  br label %.loopexit

193:                                              ; preds = %177, %175
  %.pn157 = phi { ptr, i32 } [ %178, %177 ], [ %176, %175 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %15) #6
  br label %194

.loopexit:                                        ; preds = %.critedge, %.critedge172, %192
  %.5 = phi i1 [ true, %192 ], [ false, %.critedge172 ], [ false, %.critedge ]
  call void @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  br label %197

194:                                              ; preds = %193, %.split.us
  %.pn157.pn = phi { ptr, i32 } [ %.pn157, %193 ], [ %118, %.split.us ]
  call void @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %10) #6
  br label %195

195:                                              ; preds = %194, %128
  %.pn157.pn.pn = phi { ptr, i32 } [ %.pn157.pn, %194 ], [ %.pn151, %128 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %10) #6
  call void @_ZNSt6vectorIS_IN12_GLOBAL__N_14CellESaIS1_EESaIS3_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #6
  br label %196

196:                                              ; preds = %195, %123
  %.pn157.pn.pn.pn = phi { ptr, i32 } [ %.pn157.pn.pn, %195 ], [ %.pn, %123 ]
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #6
  resume { ptr, i32 } %.pn157.pn.pn.pn

197:                                              ; preds = %5, %22, %24, %.loopexit
  %.6 = phi i1 [ %.5, %.loopexit ], [ false, %24 ], [ false, %22 ], [ false, %5 ]
  ret i1 %.6
}

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

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

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

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

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

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

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

declare noundef zeroext i1 @_ZNK4sptk19DistanceCalculation3RunERKSt6vectorIdSaIdEES5_Pd(ptr noundef nonnull align 8 dereferenceable(17), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef nonnull align 8 dereferenceable(24), ptr noundef) local_unnamed_addr #3

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

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

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

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #4

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZSt7reverseIN9__gnu_cxx17__normal_iteratorIPSt4pairIiiESt6vectorIS3_SaIS3_EEEEEvT_S9_(ptr, ptr) local_unnamed_addr #5

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZNSt15__new_allocatorISt6vectorIN12_GLOBAL__N_14CellESaIS2_EEED2Ev(ptr noundef nonnull align 1 dereferenceable(1)) 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 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { 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, !13, i64 41}
!6 = !{!"_ZTSN4sptk18DynamicTimeWarpingE", !7, i64 8, !10, i64 12, !11, i64 16, !13, i64 40, !13, i64 41, !14, i64 48, !19, i64 72}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTSN4sptk18DynamicTimeWarping20LocalPathConstraintsE", !8, i64 0}
!11 = !{!"_ZTSN4sptk19DistanceCalculationE", !7, i64 8, !12, i64 12, !13, i64 16}
!12 = !{!"_ZTSN4sptk19DistanceCalculation15DistanceMetricsE", !8, i64 0}
!13 = !{!"bool", !8, i64 0}
!14 = !{!"_ZTSSt6vectorISt4pairIiiESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSSt12_Vector_baseISt4pairIiiESaIS1_EE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseISt4pairIiiESaIS1_EE12_Vector_implE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseISt4pairIiiESaIS1_EE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!18 = !{!"any pointer", !8, i64 0}
!19 = !{!"_ZTSSt6vectorIdSaIdEE", !20, i64 0}
!20 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !18, i64 0, !18, i64 8, !18, i64 16}
!23 = !{i8 0, i8 2}
!24 = !{}
!25 = !{!26, !27, i64 0}
!26 = !{!"_ZTSN12_GLOBAL__N_14CellE", !27, i64 0, !7, i64 8, !7, i64 12}
!27 = !{!"double", !8, i64 0}
!28 = !{!26, !7, i64 8}
!29 = !{!26, !7, i64 12}
!30 = distinct !{!30, !31}
!31 = !{!"llvm.loop.mustprogress"}
!32 = !{!6, !13, i64 40}
!33 = !{!34, !7, i64 0}
!34 = !{!"_ZTSSt4pairIiiE", !7, i64 0, !7, i64 4}
!35 = !{!34, !7, i64 4}
!36 = !{!27, !27, i64 0}
!37 = distinct !{!37, !31}
!38 = distinct !{!38, !31}
!39 = !{!7, !7, i64 0}
!40 = distinct !{!40, !31}


; Effective O3 passes: ConstraintEliminationPass,CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass