; LLVM IR from mickypaganini/SSI2016-jet-clustering :: spartyjet-4.0.2_mac/External/fastjet-3.0.0/plugins/SISCone/siscone/siscone/spl_fc7e72de (9CmomentumEPd)

; 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.siscone::Cmomentum" = type <{ double, double, double, double, double, double, i32, i32, %"class.siscone::Creference", [4 x i8] }>
%"class.siscone::Creference" = type { [3 x i32] }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }
%"class.siscone::Cjet" = type <{ %"class.siscone::Cmomentum", double, i32, [4 x i8], %"class.std::vector", double, %"class.siscone::Ceta_phi_range", i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.siscone::Ceta_phi_range" = type { i32, i32 }
%"class.siscone::Csplit_merge_ptcomparison" = type <{ ptr, ptr, i32, [4 x i8] }>

@_ZTIN7siscone14Csiscone_errorE = external dso_local constant { ptr, ptr }, align 8
@.str.6 = external hidden unnamed_addr constant [58 x i8], align 1

declare void @_ZN7siscone9CmomentumC1Ev(ptr noundef nonnull align 8 dereferenceable(68)) unnamed_addr #0

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) #1

declare noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumaSERKS0_(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef nonnull align 8 dereferenceable(68)) #0

; Function Attrs: nounwind
declare void @_ZN7siscone9CmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(68)) unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7siscone25Csplit_merge_ptcomparison14get_differenceERKNS_4CjetES3_PNS_9CmomentumEPd(ptr noundef nonnull align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(132) %1, ptr noundef nonnull align 8 dereferenceable(132) %2, ptr noundef %3, ptr noundef %4) #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca %"class.siscone::Cmomentum", align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca %"class.std::__cxx11::basic_string", align 8
  %17 = alloca %"class.std::allocator.0", align 1
  %18 = alloca i1, align 1
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  %19 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  store i32 0, ptr %12, align 4, !tbaa !9
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 72, ptr %13) #6
  call void @_ZN7siscone9CmomentumC1Ev(ptr noundef nonnull align 8 dereferenceable(68) %13)
  %20 = load ptr, ptr %9, align 8, !tbaa !5
  %21 = invoke noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumaSERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %20, ptr noundef nonnull align 8 dereferenceable(68) %13)
          to label %22 unwind label %43

22:                                               ; preds = %5
  call void @_ZN7siscone9CmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(68) %13) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %13) #6
  %23 = load ptr, ptr %10, align 8, !tbaa !5
  store double 0.000000e+00, ptr %23, align 8, !tbaa !11
  br label %24

24:                                               ; preds = %164, %22
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  %26 = getelementptr inbounds %"class.siscone::Cjet", ptr %25, i32 0, i32 4
  %27 = load i32, ptr %11, align 4, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %26, i64 noundef %28) #6
  %30 = load i32, ptr %29, align 4, !tbaa !9
  %31 = load ptr, ptr %8, align 8, !tbaa !5
  %32 = getelementptr inbounds %"class.siscone::Cjet", ptr %31, i32 0, i32 4
  %33 = load i32, ptr %12, align 4, !tbaa !9
  %34 = sext i32 %33 to i64
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %34) #6
  %36 = load i32, ptr %35, align 4, !tbaa !9
  %37 = icmp eq i32 %30, %36
  br i1 %37, label %38, label %47

38:                                               ; preds = %24
  %39 = load i32, ptr %11, align 4, !tbaa !9
  %40 = add nsw i32 %39, 1
  store i32 %40, ptr %11, align 4, !tbaa !9
  %41 = load i32, ptr %12, align 4, !tbaa !9
  %42 = add nsw i32 %41, 1
  store i32 %42, ptr %12, align 4, !tbaa !9
  br label %151

43:                                               ; preds = %5
  %44 = landingpad { ptr, i32 }
          cleanup
  %45 = extractvalue { ptr, i32 } %44, 0
  store ptr %45, ptr %14, align 8
  %46 = extractvalue { ptr, i32 } %44, 1
  store i32 %46, ptr %15, align 4
  call void @_ZN7siscone9CmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(68) %13) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr %13) #6
  br label %239

47:                                               ; preds = %24
  %48 = load ptr, ptr %7, align 8, !tbaa !5
  %49 = getelementptr inbounds %"class.siscone::Cjet", ptr %48, i32 0, i32 4
  %50 = load i32, ptr %11, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %51) #6
  %53 = load i32, ptr %52, align 4, !tbaa !9
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  %55 = getelementptr inbounds %"class.siscone::Cjet", ptr %54, i32 0, i32 4
  %56 = load i32, ptr %12, align 4, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %55, i64 noundef %57) #6
  %59 = load i32, ptr %58, align 4, !tbaa !9
  %60 = icmp slt i32 %53, %59
  br i1 %60, label %61, label %90

61:                                               ; preds = %47
  %62 = getelementptr inbounds %"class.siscone::Csplit_merge_ptcomparison", ptr %19, i32 0, i32 0
  %63 = load ptr, ptr %62, align 8, !tbaa !13
  %64 = load ptr, ptr %7, align 8, !tbaa !5
  %65 = getelementptr inbounds %"class.siscone::Cjet", ptr %64, i32 0, i32 4
  %66 = load i32, ptr %11, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %65, i64 noundef %67) #6
  %69 = load i32, ptr %68, align 4, !tbaa !9
  %70 = sext i32 %69 to i64
  %71 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %63, i64 noundef %70) #6
  %72 = load ptr, ptr %9, align 8, !tbaa !5
  %73 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumpLERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %72, ptr noundef nonnull align 8 dereferenceable(68) %71)
  %74 = getelementptr inbounds %"class.siscone::Csplit_merge_ptcomparison", ptr %19, i32 0, i32 1
  %75 = load ptr, ptr %74, align 8, !tbaa !16
  %76 = load ptr, ptr %7, align 8, !tbaa !5
  %77 = getelementptr inbounds %"class.siscone::Cjet", ptr %76, i32 0, i32 4
  %78 = load i32, ptr %11, align 4, !tbaa !9
  %79 = sext i32 %78 to i64
  %80 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %77, i64 noundef %79) #6
  %81 = load i32, ptr %80, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %82) #6
  %84 = load double, ptr %83, align 8, !tbaa !11
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = load double, ptr %85, align 8, !tbaa !11
  %87 = fadd double %86, %84
  store double %87, ptr %85, align 8, !tbaa !11
  %88 = load i32, ptr %11, align 4, !tbaa !9
  %89 = add nsw i32 %88, 1
  store i32 %89, ptr %11, align 4, !tbaa !9
  br label %150

90:                                               ; preds = %47
  %91 = load ptr, ptr %7, align 8, !tbaa !5
  %92 = getelementptr inbounds %"class.siscone::Cjet", ptr %91, i32 0, i32 4
  %93 = load i32, ptr %11, align 4, !tbaa !9
  %94 = sext i32 %93 to i64
  %95 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %92, i64 noundef %94) #6
  %96 = load i32, ptr %95, align 4, !tbaa !9
  %97 = load ptr, ptr %8, align 8, !tbaa !5
  %98 = getelementptr inbounds %"class.siscone::Cjet", ptr %97, i32 0, i32 4
  %99 = load i32, ptr %12, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %98, i64 noundef %100) #6
  %102 = load i32, ptr %101, align 4, !tbaa !9
  %103 = icmp sgt i32 %96, %102
  br i1 %103, label %104, label %133

104:                                              ; preds = %90
  %105 = getelementptr inbounds %"class.siscone::Csplit_merge_ptcomparison", ptr %19, i32 0, i32 0
  %106 = load ptr, ptr %105, align 8, !tbaa !13
  %107 = load ptr, ptr %8, align 8, !tbaa !5
  %108 = getelementptr inbounds %"class.siscone::Cjet", ptr %107, i32 0, i32 4
  %109 = load i32, ptr %12, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %110) #6
  %112 = load i32, ptr %111, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef %113) #6
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentummIERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %115, ptr noundef nonnull align 8 dereferenceable(68) %114)
  %117 = getelementptr inbounds %"class.siscone::Csplit_merge_ptcomparison", ptr %19, i32 0, i32 1
  %118 = load ptr, ptr %117, align 8, !tbaa !16
  %119 = load ptr, ptr %8, align 8, !tbaa !5
  %120 = getelementptr inbounds %"class.siscone::Cjet", ptr %119, i32 0, i32 4
  %121 = load i32, ptr %12, align 4, !tbaa !9
  %122 = sext i32 %121 to i64
  %123 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %120, i64 noundef %122) #6
  %124 = load i32, ptr %123, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %118, i64 noundef %125) #6
  %127 = load double, ptr %126, align 8, !tbaa !11
  %128 = load ptr, ptr %10, align 8, !tbaa !5
  %129 = load double, ptr %128, align 8, !tbaa !11
  %130 = fsub double %129, %127
  store double %130, ptr %128, align 8, !tbaa !11
  %131 = load i32, ptr %12, align 4, !tbaa !9
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %12, align 4, !tbaa !9
  br label %149

133:                                              ; preds = %90
  store i1 true, ptr %18, align 1
  %134 = call ptr @__cxa_allocate_exception(i64 32) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr %17) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %17) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %16, ptr noundef @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %17)
          to label %135 unwind label %137

135:                                              ; preds = %133
  invoke void @_ZN7siscone14Csiscone_errorC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %134, ptr noundef nonnull align 8 dereferenceable(32) %16)
          to label %136 unwind label %141

136:                                              ; preds = %135
  store i1 false, ptr %18, align 1
  invoke void @__cxa_throw(ptr %134, ptr @_ZTIN7siscone14Csiscone_errorE, ptr @_ZN7siscone14Csiscone_errorD2Ev) #7
          to label %245 unwind label %141

137:                                              ; preds = %133
  %138 = landingpad { ptr, i32 }
          cleanup
  %139 = extractvalue { ptr, i32 } %138, 0
  store ptr %139, ptr %14, align 8
  %140 = extractvalue { ptr, i32 } %138, 1
  store i32 %140, ptr %15, align 4
  br label %145

141:                                              ; preds = %136, %135
  %142 = landingpad { ptr, i32 }
          cleanup
  %143 = extractvalue { ptr, i32 } %142, 0
  store ptr %143, ptr %14, align 8
  %144 = extractvalue { ptr, i32 } %142, 1
  store i32 %144, ptr %15, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %16) #6
  br label %145

145:                                              ; preds = %141, %137
  call void @_ZNSt15__new_allocatorIcED2Ev(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 32, ptr %16) #6
  %146 = load i1, ptr %18, align 1
  br i1 %146, label %147, label %148

147:                                              ; preds = %145
  call void @__cxa_free_exception(ptr %134) #6
  br label %148

148:                                              ; preds = %147, %145
  br label %239

149:                                              ; preds = %104
  br label %150

150:                                              ; preds = %149, %61
  br label %151

151:                                              ; preds = %150, %38
  br label %152

152:                                              ; preds = %151
  %153 = load i32, ptr %11, align 4, !tbaa !9
  %154 = load ptr, ptr %7, align 8, !tbaa !5
  %155 = getelementptr inbounds %"class.siscone::Cjet", ptr %154, i32 0, i32 2
  %156 = load i32, ptr %155, align 8, !tbaa !17
  %157 = icmp slt i32 %153, %156
  br i1 %157, label %158, label %164

158:                                              ; preds = %152
  %159 = load i32, ptr %12, align 4, !tbaa !9
  %160 = load ptr, ptr %8, align 8, !tbaa !5
  %161 = getelementptr inbounds %"class.siscone::Cjet", ptr %160, i32 0, i32 2
  %162 = load i32, ptr %161, align 8, !tbaa !17
  %163 = icmp slt i32 %159, %162
  br label %164

164:                                              ; preds = %158, %152
  %165 = phi i1 [ false, %152 ], [ %163, %158 ]
  br i1 %165, label %24, label %166, !llvm.loop !26

166:                                              ; preds = %164
  br label %167

167:                                              ; preds = %173, %166
  %168 = load i32, ptr %11, align 4, !tbaa !9
  %169 = load ptr, ptr %7, align 8, !tbaa !5
  %170 = getelementptr inbounds %"class.siscone::Cjet", ptr %169, i32 0, i32 2
  %171 = load i32, ptr %170, align 8, !tbaa !17
  %172 = icmp slt i32 %168, %171
  br i1 %172, label %173, label %202

173:                                              ; preds = %167
  %174 = getelementptr inbounds %"class.siscone::Csplit_merge_ptcomparison", ptr %19, i32 0, i32 0
  %175 = load ptr, ptr %174, align 8, !tbaa !13
  %176 = load ptr, ptr %7, align 8, !tbaa !5
  %177 = getelementptr inbounds %"class.siscone::Cjet", ptr %176, i32 0, i32 4
  %178 = load i32, ptr %11, align 4, !tbaa !9
  %179 = sext i32 %178 to i64
  %180 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %177, i64 noundef %179) #6
  %181 = load i32, ptr %180, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %175, i64 noundef %182) #6
  %184 = load ptr, ptr %9, align 8, !tbaa !5
  %185 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumpLERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %184, ptr noundef nonnull align 8 dereferenceable(68) %183)
  %186 = getelementptr inbounds %"class.siscone::Csplit_merge_ptcomparison", ptr %19, i32 0, i32 1
  %187 = load ptr, ptr %186, align 8, !tbaa !16
  %188 = load ptr, ptr %7, align 8, !tbaa !5
  %189 = getelementptr inbounds %"class.siscone::Cjet", ptr %188, i32 0, i32 4
  %190 = load i32, ptr %11, align 4, !tbaa !9
  %191 = sext i32 %190 to i64
  %192 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %189, i64 noundef %191) #6
  %193 = load i32, ptr %192, align 4, !tbaa !9
  %194 = sext i32 %193 to i64
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %187, i64 noundef %194) #6
  %196 = load double, ptr %195, align 8, !tbaa !11
  %197 = load ptr, ptr %10, align 8, !tbaa !5
  %198 = load double, ptr %197, align 8, !tbaa !11
  %199 = fadd double %198, %196
  store double %199, ptr %197, align 8, !tbaa !11
  %200 = load i32, ptr %11, align 4, !tbaa !9
  %201 = add nsw i32 %200, 1
  store i32 %201, ptr %11, align 4, !tbaa !9
  br label %167, !llvm.loop !28

202:                                              ; preds = %167
  br label %203

203:                                              ; preds = %209, %202
  %204 = load i32, ptr %12, align 4, !tbaa !9
  %205 = load ptr, ptr %8, align 8, !tbaa !5
  %206 = getelementptr inbounds %"class.siscone::Cjet", ptr %205, i32 0, i32 2
  %207 = load i32, ptr %206, align 8, !tbaa !17
  %208 = icmp slt i32 %204, %207
  br i1 %208, label %209, label %238

209:                                              ; preds = %203
  %210 = getelementptr inbounds %"class.siscone::Csplit_merge_ptcomparison", ptr %19, i32 0, i32 0
  %211 = load ptr, ptr %210, align 8, !tbaa !13
  %212 = load ptr, ptr %8, align 8, !tbaa !5
  %213 = getelementptr inbounds %"class.siscone::Cjet", ptr %212, i32 0, i32 4
  %214 = load i32, ptr %12, align 4, !tbaa !9
  %215 = sext i32 %214 to i64
  %216 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %213, i64 noundef %215) #6
  %217 = load i32, ptr %216, align 4, !tbaa !9
  %218 = sext i32 %217 to i64
  %219 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %211, i64 noundef %218) #6
  %220 = load ptr, ptr %9, align 8, !tbaa !5
  %221 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentummIERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %220, ptr noundef nonnull align 8 dereferenceable(68) %219)
  %222 = getelementptr inbounds %"class.siscone::Csplit_merge_ptcomparison", ptr %19, i32 0, i32 1
  %223 = load ptr, ptr %222, align 8, !tbaa !16
  %224 = load ptr, ptr %8, align 8, !tbaa !5
  %225 = getelementptr inbounds %"class.siscone::Cjet", ptr %224, i32 0, i32 4
  %226 = load i32, ptr %12, align 4, !tbaa !9
  %227 = sext i32 %226 to i64
  %228 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %225, i64 noundef %227) #6
  %229 = load i32, ptr %228, align 4, !tbaa !9
  %230 = sext i32 %229 to i64
  %231 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %223, i64 noundef %230) #6
  %232 = load double, ptr %231, align 8, !tbaa !11
  %233 = load ptr, ptr %10, align 8, !tbaa !5
  %234 = load double, ptr %233, align 8, !tbaa !11
  %235 = fsub double %234, %232
  store double %235, ptr %233, align 8, !tbaa !11
  %236 = load i32, ptr %12, align 4, !tbaa !9
  %237 = add nsw i32 %236, 1
  store i32 %237, ptr %12, align 4, !tbaa !9
  br label %203, !llvm.loop !29

238:                                              ; preds = %203
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  ret void

239:                                              ; preds = %148, %43
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  br label %240

240:                                              ; preds = %239
  %241 = load ptr, ptr %14, align 8
  %242 = load i32, ptr %15, align 4
  %243 = insertvalue { ptr, i32 } poison, ptr %241, 0
  %244 = insertvalue { ptr, i32 } %243, i32 %242, 1
  resume { ptr, i32 } %244

245:                                              ; preds = %136
  unreachable
}

declare noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumpLERKS0_(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef nonnull align 8 dereferenceable(68)) #0

declare ptr @__cxa_allocate_exception(i64)

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7siscone14Csiscone_errorC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

declare void @__cxa_free_exception(ptr)

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

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

declare noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentummIERKS0_(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef nonnull align 8 dereferenceable(68)) #0

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

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !6, i64 0}
!14 = !{!"_ZTSN7siscone25Csplit_merge_ptcomparisonE", !6, i64 0, !6, i64 8, !15, i64 16}
!15 = !{!"_ZTSN7siscone18Esplit_merge_scaleE", !7, i64 0}
!16 = !{!14, !6, i64 8}
!17 = !{!18, !10, i64 80}
!18 = !{!"_ZTSN7siscone4CjetE", !19, i64 0, !12, i64 72, !10, i64 80, !21, i64 88, !12, i64 112, !25, i64 120, !10, i64 128}
!19 = !{!"_ZTSN7siscone9CmomentumE", !12, i64 0, !12, i64 8, !12, i64 16, !12, i64 24, !12, i64 32, !12, i64 40, !10, i64 48, !10, i64 52, !20, i64 56}
!20 = !{!"_ZTSN7siscone10CreferenceE", !7, i64 0}
!21 = !{!"_ZTSSt6vectorIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSN7siscone14Ceta_phi_rangeE", !10, i64 0, !10, i64 4}
!26 = distinct !{!26, !27}
!27 = !{!"llvm.loop.mustprogress"}
!28 = distinct !{!28, !27}
!29 = distinct !{!29, !27}


; 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.siscone::Cmomentum" = type <{ double, double, double, double, double, double, i32, i32, %"class.siscone::Creference", [4 x i8] }>
%"class.siscone::Creference" = type { [3 x i32] }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.std::allocator.0" = type { i8 }

@_ZTIN7siscone14Csiscone_errorE = external dso_local constant { ptr, ptr }, align 8
@.str.6 = external hidden unnamed_addr constant [58 x i8], align 1

declare void @_ZN7siscone9CmomentumC1Ev(ptr noundef nonnull align 8 dereferenceable(68)) unnamed_addr #0

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) #1

declare noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumaSERKS0_(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef nonnull align 8 dereferenceable(68)) local_unnamed_addr #0

; Function Attrs: nounwind
declare void @_ZN7siscone9CmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(68)) unnamed_addr #2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZNK7siscone25Csplit_merge_ptcomparison14get_differenceERKNS_4CjetES3_PNS_9CmomentumEPd(ptr nocapture noundef nonnull readonly align 8 dereferenceable(20) %0, ptr noundef nonnull align 8 dereferenceable(132) %1, ptr noundef nonnull align 8 dereferenceable(132) %2, ptr noundef %3, ptr nocapture noundef %4) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %"class.siscone::Cmomentum", align 8
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator.0", align 1
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %6) #6
  call void @_ZN7siscone9CmomentumC1Ev(ptr noundef nonnull align 8 dereferenceable(68) %6)
  %9 = invoke noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumaSERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %3, ptr noundef nonnull align 8 dereferenceable(68) %6)
          to label %10 unwind label %27

10:                                               ; preds = %5
  call void @_ZN7siscone9CmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(68) %6) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #6
  store double 0.000000e+00, ptr %4, align 8, !tbaa !5
  %11 = getelementptr inbounds i8, ptr %1, i64 88
  %12 = getelementptr inbounds i8, ptr %2, i64 88
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  %14 = getelementptr inbounds i8, ptr %1, i64 80
  %15 = getelementptr inbounds i8, ptr %2, i64 80
  br label %16

16:                                               ; preds = %81, %10
  %.061 = phi i32 [ 0, %10 ], [ %.162, %81 ]
  %.059 = phi i32 [ 0, %10 ], [ %.160, %81 ]
  %17 = sext i32 %.061 to i64
  %18 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %17) #6
  %19 = load i32, ptr %18, align 4, !tbaa !9
  %20 = sext i32 %.059 to i64
  %21 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %20) #6
  %22 = load i32, ptr %21, align 4, !tbaa !9
  %23 = icmp eq i32 %19, %22
  br i1 %23, label %24, label %29

24:                                               ; preds = %16
  %25 = add nsw i32 %.061, 1
  %26 = add nsw i32 %.059, 1
  br label %81

27:                                               ; preds = %5
  %28 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7siscone9CmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(68) %6) #6
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %6) #6
  br label %125

29:                                               ; preds = %16
  %30 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %17) #6
  %31 = load i32, ptr %30, align 4, !tbaa !9
  %32 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %20) #6
  %33 = load i32, ptr %32, align 4, !tbaa !9
  %34 = icmp slt i32 %31, %33
  br i1 %34, label %35, label %51

35:                                               ; preds = %29
  %36 = load ptr, ptr %0, align 8, !tbaa !11
  %37 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %17) #6
  %38 = load i32, ptr %37, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %36, i64 noundef %39) #6
  %41 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumpLERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %3, ptr noundef nonnull align 8 dereferenceable(68) %40)
  %42 = load ptr, ptr %13, align 8, !tbaa !15
  %43 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %17) #6
  %44 = load i32, ptr %43, align 4, !tbaa !9
  %45 = sext i32 %44 to i64
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %42, i64 noundef %45) #6
  %47 = load double, ptr %46, align 8, !tbaa !5
  %48 = load double, ptr %4, align 8, !tbaa !5
  %49 = fadd double %47, %48
  store double %49, ptr %4, align 8, !tbaa !5
  %50 = add nsw i32 %.061, 1
  br label %81

51:                                               ; preds = %29
  %52 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %17) #6
  %53 = load i32, ptr %52, align 4, !tbaa !9
  %54 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %20) #6
  %55 = load i32, ptr %54, align 4, !tbaa !9
  %56 = icmp sgt i32 %53, %55
  br i1 %56, label %57, label %73

57:                                               ; preds = %51
  %58 = load ptr, ptr %0, align 8, !tbaa !11
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %20) #6
  %60 = load i32, ptr %59, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %61) #6
  %63 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentummIERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %3, ptr noundef nonnull align 8 dereferenceable(68) %62)
  %64 = load ptr, ptr %13, align 8, !tbaa !15
  %65 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %20) #6
  %66 = load i32, ptr %65, align 4, !tbaa !9
  %67 = sext i32 %66 to i64
  %68 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %64, i64 noundef %67) #6
  %69 = load double, ptr %68, align 8, !tbaa !5
  %70 = load double, ptr %4, align 8, !tbaa !5
  %71 = fsub double %70, %69
  store double %71, ptr %4, align 8, !tbaa !5
  %72 = add nsw i32 %.059, 1
  br label %81

73:                                               ; preds = %51
  %74 = call ptr @__cxa_allocate_exception(i64 32) #6
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %7) #6
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %8) #6
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #6
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef nonnull @.str.6, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %75 unwind label %.thread

75:                                               ; preds = %73
  invoke void @_ZN7siscone14Csiscone_errorC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32) %74, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %76 unwind label %78

76:                                               ; preds = %75
  invoke void @__cxa_throw(ptr nonnull %74, ptr nonnull @_ZTIN7siscone14Csiscone_errorE, ptr nonnull @_ZN7siscone14Csiscone_errorD2Ev) #7
          to label %126 unwind label %78

.thread:                                          ; preds = %73
  %77 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(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 32, ptr nonnull %7) #6
  br label %80

78:                                               ; preds = %75, %76
  %.0 = phi i1 [ false, %76 ], [ true, %75 ]
  %79 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #6
  call void @_ZNSt15__new_allocatorIcED2Ev(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 32, ptr nonnull %7) #6
  br i1 %.0, label %80, label %125

80:                                               ; preds = %.thread, %78
  %.pn70 = phi { ptr, i32 } [ %77, %.thread ], [ %79, %78 ]
  call void @__cxa_free_exception(ptr %74) #6
  br label %125

81:                                               ; preds = %24, %57, %35
  %.162 = phi i32 [ %25, %24 ], [ %50, %35 ], [ %.061, %57 ]
  %.160 = phi i32 [ %26, %24 ], [ %.059, %35 ], [ %72, %57 ]
  %82 = load i32, ptr %14, align 8, !tbaa !16
  %83 = icmp slt i32 %.162, %82
  %84 = load i32, ptr %15, align 8
  %85 = icmp slt i32 %.160, %84
  %or.cond = select i1 %83, i1 %85, i1 false
  br i1 %or.cond, label %16, label %.critedge.preheader, !llvm.loop !25

.critedge.preheader:                              ; preds = %81
  br i1 %83, label %.lr.ph, label %.preheader

.lr.ph:                                           ; preds = %.critedge.preheader
  %86 = sext i32 %.162 to i64
  br label %.critedge

.preheader.loopexit:                              ; preds = %.critedge
  %.pre = load i32, ptr %15, align 8, !tbaa !16
  br label %.preheader

.preheader:                                       ; preds = %.preheader.loopexit, %.critedge.preheader
  %87 = phi i32 [ %.pre, %.preheader.loopexit ], [ %84, %.critedge.preheader ]
  %88 = icmp slt i32 %.160, %87
  br i1 %88, label %.lr.ph78, label %._crit_edge

.lr.ph78:                                         ; preds = %.preheader
  %89 = sext i32 %.160 to i64
  br label %107

.critedge:                                        ; preds = %.lr.ph, %.critedge
  %indvars.iv = phi i64 [ %86, %.lr.ph ], [ %indvars.iv.next, %.critedge ]
  %90 = load ptr, ptr %0, align 8, !tbaa !11
  %91 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv) #6
  %92 = load i32, ptr %91, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %90, i64 noundef %93) #6
  %95 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumpLERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %3, ptr noundef nonnull align 8 dereferenceable(68) %94)
  %96 = load ptr, ptr %13, align 8, !tbaa !15
  %97 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %11, i64 noundef %indvars.iv) #6
  %98 = load i32, ptr %97, align 4, !tbaa !9
  %99 = sext i32 %98 to i64
  %100 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %96, i64 noundef %99) #6
  %101 = load double, ptr %100, align 8, !tbaa !5
  %102 = load double, ptr %4, align 8, !tbaa !5
  %103 = fadd double %101, %102
  store double %103, ptr %4, align 8, !tbaa !5
  %indvars.iv.next = add nsw i64 %indvars.iv, 1
  %104 = load i32, ptr %14, align 8, !tbaa !16
  %105 = sext i32 %104 to i64
  %106 = icmp slt i64 %indvars.iv.next, %105
  br i1 %106, label %.critedge, label %.preheader.loopexit, !llvm.loop !27

107:                                              ; preds = %.lr.ph78, %107
  %indvars.iv80 = phi i64 [ %89, %.lr.ph78 ], [ %indvars.iv.next81, %107 ]
  %108 = load ptr, ptr %0, align 8, !tbaa !11
  %109 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv80) #6
  %110 = load i32, ptr %109, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %108, i64 noundef %111) #6
  %113 = call noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentummIERKS0_(ptr noundef nonnull align 8 dereferenceable(68) %3, ptr noundef nonnull align 8 dereferenceable(68) %112)
  %114 = load ptr, ptr %13, align 8, !tbaa !15
  %115 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZNKSt6vectorIiSaIiEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %12, i64 noundef %indvars.iv80) #6
  %116 = load i32, ptr %115, align 4, !tbaa !9
  %117 = sext i32 %116 to i64
  %118 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %114, i64 noundef %117) #6
  %119 = load double, ptr %118, align 8, !tbaa !5
  %120 = load double, ptr %4, align 8, !tbaa !5
  %121 = fsub double %120, %119
  store double %121, ptr %4, align 8, !tbaa !5
  %indvars.iv.next81 = add nsw i64 %indvars.iv80, 1
  %122 = load i32, ptr %15, align 8, !tbaa !16
  %123 = sext i32 %122 to i64
  %124 = icmp slt i64 %indvars.iv.next81, %123
  br i1 %124, label %107, label %._crit_edge, !llvm.loop !28

._crit_edge:                                      ; preds = %107, %.preheader
  ret void

125:                                              ; preds = %78, %80, %27
  %.pn.pn = phi { ptr, i32 } [ %.pn70, %80 ], [ %79, %78 ], [ %28, %27 ]
  resume { ptr, i32 } %.pn.pn

126:                                              ; preds = %76
  unreachable
}

declare noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentumpLERKS0_(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef nonnull align 8 dereferenceable(68)) local_unnamed_addr #0

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7siscone14Csiscone_errorC2ERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

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

declare void @__cxa_throw(ptr, ptr, ptr) local_unnamed_addr

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #3 align 2

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

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

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

declare noundef nonnull align 8 dereferenceable(68) ptr @_ZN7siscone9CmomentummIERKS0_(ptr noundef nonnull align 8 dereferenceable(68), ptr noundef nonnull align 8 dereferenceable(68)) local_unnamed_addr #0

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

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

!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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !13, i64 0}
!12 = !{!"_ZTSN7siscone25Csplit_merge_ptcomparisonE", !13, i64 0, !13, i64 8, !14, i64 16}
!13 = !{!"any pointer", !7, i64 0}
!14 = !{!"_ZTSN7siscone18Esplit_merge_scaleE", !7, i64 0}
!15 = !{!12, !13, i64 8}
!16 = !{!17, !10, i64 80}
!17 = !{!"_ZTSN7siscone4CjetE", !18, i64 0, !6, i64 72, !10, i64 80, !20, i64 88, !6, i64 112, !24, i64 120, !10, i64 128}
!18 = !{!"_ZTSN7siscone9CmomentumE", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !10, i64 48, !10, i64 52, !19, i64 56}
!19 = !{!"_ZTSN7siscone10CreferenceE", !7, i64 0}
!20 = !{!"_ZTSSt6vectorIiSaIiEE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !13, i64 0, !13, i64 8, !13, i64 16}
!24 = !{!"_ZTSN7siscone14Ceta_phi_rangeE", !10, i64 0, !10, i64 4}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = distinct !{!27, !26}
!28 = distinct !{!28, !26}


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