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

; 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::Ctwovect" = type { double, double }
%"class.siscone::Cvicinity" = type { ptr, double, double, double, double, double, double, i32, %"class.std::vector", %"class.std::vector.3", ptr, %"class.std::vector.8", i32, double, double }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<siscone::Cmomentum, std::allocator<siscone::Cmomentum>>::_Vector_impl" }
%"struct.std::_Vector_base<siscone::Cmomentum, std::allocator<siscone::Cmomentum>>::_Vector_impl" = type { %"struct.std::_Vector_base<siscone::Cmomentum, std::allocator<siscone::Cmomentum>>::_Vector_impl_data" }
%"struct.std::_Vector_base<siscone::Cmomentum, std::allocator<siscone::Cmomentum>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.3" = type { %"struct.std::_Vector_base.4" }
%"struct.std::_Vector_base.4" = type { %"struct.std::_Vector_base<siscone::Cvicinity_inclusion, std::allocator<siscone::Cvicinity_inclusion>>::_Vector_impl" }
%"struct.std::_Vector_base<siscone::Cvicinity_inclusion, std::allocator<siscone::Cvicinity_inclusion>>::_Vector_impl" = type { %"struct.std::_Vector_base<siscone::Cvicinity_inclusion, std::allocator<siscone::Cvicinity_inclusion>>::_Vector_impl_data" }
%"struct.std::_Vector_base<siscone::Cvicinity_inclusion, std::allocator<siscone::Cvicinity_inclusion>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.8" = type { %"struct.std::_Vector_base.9" }
%"struct.std::_Vector_base.9" = type { %"struct.std::_Vector_base<siscone::Cvicinity_elm *, std::allocator<siscone::Cvicinity_elm *>>::_Vector_impl" }
%"struct.std::_Vector_base<siscone::Cvicinity_elm *, std::allocator<siscone::Cvicinity_elm *>>::_Vector_impl" = type { %"struct.std::_Vector_base<siscone::Cvicinity_elm *, std::allocator<siscone::Cvicinity_elm *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<siscone::Cvicinity_elm *, std::allocator<siscone::Cvicinity_elm *>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"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.siscone::Cvicinity_elm" = type { ptr, ptr, double, double, double, i8, double, %"class.std::__cxx11::list" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<siscone::Cvicinity_elm *, std::allocator<siscone::Cvicinity_elm *>>::_List_impl" }
%"struct.std::__cxx11::_List_base<siscone::Cvicinity_elm *, std::allocator<siscone::Cvicinity_elm *>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }

; 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 speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN7siscone9Cvicinity18append_to_vicinityEPNS_9CmomentumE(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca %"class.siscone::Ctwovect", align 8
  %16 = alloca %"class.siscone::Ctwovect", align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %19 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #6
  %20 = load ptr, ptr %4, align 8, !tbaa !5
  %21 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 0
  %22 = load ptr, ptr %21, align 8, !tbaa !9
  %23 = icmp eq ptr %20, %22
  br i1 %23, label %24, label %25

24:                                               ; preds = %2
  store i32 1, ptr %8, align 4
  br label %292

25:                                               ; preds = %2
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  %26 = load ptr, ptr %4, align 8, !tbaa !5
  %27 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %26, i32 0, i32 7
  %28 = load i32, ptr %27, align 4, !tbaa !25
  %29 = mul nsw i32 2, %28
  store i32 %29, ptr %9, align 4, !tbaa !28
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %30, i32 0, i32 4
  %32 = load double, ptr %31, align 8, !tbaa !29
  %33 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 13
  %34 = load double, ptr %33, align 8, !tbaa !30
  %35 = fsub double %32, %34
  store double %35, ptr %5, align 8, !tbaa !31
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %36, i32 0, i32 5
  %38 = load double, ptr %37, align 8, !tbaa !32
  %39 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 14
  %40 = load double, ptr %39, align 8, !tbaa !33
  %41 = fsub double %38, %40
  store double %41, ptr %6, align 8, !tbaa !31
  %42 = load double, ptr %6, align 8, !tbaa !31
  %43 = fcmp ogt double %42, 0x400921FB54442D18
  br i1 %43, label %44, label %47

44:                                               ; preds = %25
  %45 = load double, ptr %6, align 8, !tbaa !31
  %46 = fsub double %45, 0x401921FB54442D18
  store double %46, ptr %6, align 8, !tbaa !31
  br label %54

47:                                               ; preds = %25
  %48 = load double, ptr %6, align 8, !tbaa !31
  %49 = fcmp olt double %48, 0xC00921FB54442D18
  br i1 %49, label %50, label %53

50:                                               ; preds = %47
  %51 = load double, ptr %6, align 8, !tbaa !31
  %52 = fadd double %51, 0x401921FB54442D18
  store double %52, ptr %6, align 8, !tbaa !31
  br label %53

53:                                               ; preds = %50, %47
  br label %54

54:                                               ; preds = %53, %44
  %55 = load double, ptr %5, align 8, !tbaa !31
  %56 = load double, ptr %5, align 8, !tbaa !31
  %57 = load double, ptr %6, align 8, !tbaa !31
  %58 = load double, ptr %6, align 8, !tbaa !31
  %59 = fmul double %57, %58
  %60 = call double @llvm.fmuladd.f64(double %55, double %56, double %59)
  store double %60, ptr %7, align 8, !tbaa !31
  %61 = load double, ptr %7, align 8, !tbaa !31
  %62 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 2
  %63 = load double, ptr %62, align 8, !tbaa !34
  %64 = fcmp olt double %61, %63
  br i1 %64, label %65, label %291

65:                                               ; preds = %54
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #6
  %66 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 2
  %67 = load double, ptr %66, align 8, !tbaa !34
  %68 = load double, ptr %7, align 8, !tbaa !31
  %69 = fdiv double %67, %68
  %70 = fsub double %69, 1.000000e+00
  %71 = call double @sqrt(double noundef %70) #6
  store double %71, ptr %12, align 8, !tbaa !31
  %72 = load double, ptr %5, align 8, !tbaa !31
  %73 = load double, ptr %6, align 8, !tbaa !31
  %74 = load double, ptr %12, align 8, !tbaa !31
  %75 = fneg double %73
  %76 = call double @llvm.fmuladd.f64(double %75, double %74, double %72)
  %77 = fmul double 5.000000e-01, %76
  store double %77, ptr %11, align 8, !tbaa !31
  %78 = load double, ptr %6, align 8, !tbaa !31
  %79 = load double, ptr %5, align 8, !tbaa !31
  %80 = load double, ptr %12, align 8, !tbaa !31
  %81 = call double @llvm.fmuladd.f64(double %79, double %80, double %78)
  %82 = fmul double 5.000000e-01, %81
  store double %82, ptr %10, align 8, !tbaa !31
  %83 = load double, ptr %10, align 8, !tbaa !31
  %84 = load double, ptr %11, align 8, !tbaa !31
  %85 = call noundef double @_ZN7siscone10sort_angleEdd(double noundef %83, double noundef %84)
  %86 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 10
  %87 = load ptr, ptr %86, align 8, !tbaa !35
  %88 = load i32, ptr %9, align 4, !tbaa !28
  %89 = sext i32 %88 to i64
  %90 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %87, i64 %89
  %91 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %90, i32 0, i32 4
  store double %85, ptr %91, align 8, !tbaa !36
  %92 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 13
  %93 = load double, ptr %92, align 8, !tbaa !30
  %94 = load double, ptr %11, align 8, !tbaa !31
  %95 = fadd double %93, %94
  %96 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 10
  %97 = load ptr, ptr %96, align 8, !tbaa !35
  %98 = load i32, ptr %9, align 4, !tbaa !28
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %97, i64 %99
  %101 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %100, i32 0, i32 2
  store double %95, ptr %101, align 8, !tbaa !45
  %102 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 14
  %103 = load double, ptr %102, align 8, !tbaa !33
  %104 = load double, ptr %10, align 8, !tbaa !31
  %105 = fadd double %103, %104
  %106 = call noundef double @_ZN7siscone12phi_in_rangeEd(double noundef %105)
  %107 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 10
  %108 = load ptr, ptr %107, align 8, !tbaa !35
  %109 = load i32, ptr %9, align 4, !tbaa !28
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %108, i64 %110
  %112 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %111, i32 0, i32 3
  store double %106, ptr %112, align 8, !tbaa !46
  %113 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 10
  %114 = load ptr, ptr %113, align 8, !tbaa !35
  %115 = load i32, ptr %9, align 4, !tbaa !28
  %116 = sext i32 %115 to i64
  %117 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %114, i64 %116
  %118 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %117, i32 0, i32 5
  store i8 1, ptr %118, align 8, !tbaa !47
  %119 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 10
  %120 = load ptr, ptr %119, align 8, !tbaa !35
  %121 = load i32, ptr %9, align 4, !tbaa !28
  %122 = sext i32 %121 to i64
  %123 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %120, i64 %122
  %124 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %123, i32 0, i32 7
  call void @_ZNSt7__cxx114listIPN7siscone13Cvicinity_elmESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %124) #6
  %125 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 11
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #6
  %126 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 10
  %127 = load ptr, ptr %126, align 8, !tbaa !35
  %128 = load i32, ptr %9, align 4, !tbaa !28
  %129 = sext i32 %128 to i64
  %130 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %127, i64 %129
  store ptr %130, ptr %13, align 8, !tbaa !5
  call void @_ZNSt6vectorIPN7siscone13Cvicinity_elmESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %125, ptr noundef nonnull align 8 dereferenceable(8) %13)
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #6
  %131 = load double, ptr %5, align 8, !tbaa !31
  %132 = load double, ptr %6, align 8, !tbaa !31
  %133 = load double, ptr %12, align 8, !tbaa !31
  %134 = call double @llvm.fmuladd.f64(double %132, double %133, double %131)
  %135 = fmul double 5.000000e-01, %134
  store double %135, ptr %11, align 8, !tbaa !31
  %136 = load double, ptr %6, align 8, !tbaa !31
  %137 = load double, ptr %5, align 8, !tbaa !31
  %138 = load double, ptr %12, align 8, !tbaa !31
  %139 = fneg double %137
  %140 = call double @llvm.fmuladd.f64(double %139, double %138, double %136)
  %141 = fmul double 5.000000e-01, %140
  store double %141, ptr %10, align 8, !tbaa !31
  %142 = load double, ptr %10, align 8, !tbaa !31
  %143 = load double, ptr %11, align 8, !tbaa !31
  %144 = call noundef double @_ZN7siscone10sort_angleEdd(double noundef %142, double noundef %143)
  %145 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 10
  %146 = load ptr, ptr %145, align 8, !tbaa !35
  %147 = load i32, ptr %9, align 4, !tbaa !28
  %148 = add nsw i32 %147, 1
  %149 = sext i32 %148 to i64
  %150 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %146, i64 %149
  %151 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %150, i32 0, i32 4
  store double %144, ptr %151, align 8, !tbaa !36
  %152 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 13
  %153 = load double, ptr %152, align 8, !tbaa !30
  %154 = load double, ptr %11, align 8, !tbaa !31
  %155 = fadd double %153, %154
  %156 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 10
  %157 = load ptr, ptr %156, align 8, !tbaa !35
  %158 = load i32, ptr %9, align 4, !tbaa !28
  %159 = add nsw i32 %158, 1
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %157, i64 %160
  %162 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %161, i32 0, i32 2
  store double %155, ptr %162, align 8, !tbaa !45
  %163 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 14
  %164 = load double, ptr %163, align 8, !tbaa !33
  %165 = load double, ptr %10, align 8, !tbaa !31
  %166 = fadd double %164, %165
  %167 = call noundef double @_ZN7siscone12phi_in_rangeEd(double noundef %166)
  %168 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 10
  %169 = load ptr, ptr %168, align 8, !tbaa !35
  %170 = load i32, ptr %9, align 4, !tbaa !28
  %171 = add nsw i32 %170, 1
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %169, i64 %172
  %174 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %173, i32 0, i32 3
  store double %167, ptr %174, align 8, !tbaa !46
  %175 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 10
  %176 = load ptr, ptr %175, align 8, !tbaa !35
  %177 = load i32, ptr %9, align 4, !tbaa !28
  %178 = add nsw i32 %177, 1
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %176, i64 %179
  %181 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %180, i32 0, i32 5
  store i8 0, ptr %181, align 8, !tbaa !47
  %182 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 10
  %183 = load ptr, ptr %182, align 8, !tbaa !35
  %184 = load i32, ptr %9, align 4, !tbaa !28
  %185 = add nsw i32 %184, 1
  %186 = sext i32 %185 to i64
  %187 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %183, i64 %186
  %188 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %187, i32 0, i32 7
  call void @_ZNSt7__cxx114listIPN7siscone13Cvicinity_elmESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %188) #6
  %189 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 11
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #6
  %190 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 10
  %191 = load ptr, ptr %190, align 8, !tbaa !35
  %192 = load i32, ptr %9, align 4, !tbaa !28
  %193 = add nsw i32 %192, 1
  %194 = sext i32 %193 to i64
  %195 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %191, i64 %194
  store ptr %195, ptr %14, align 8, !tbaa !5
  call void @_ZNSt6vectorIPN7siscone13Cvicinity_elmESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %189, ptr noundef nonnull align 8 dereferenceable(8) %14)
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr %15) #6
  %196 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 13
  %197 = load double, ptr %196, align 8, !tbaa !30
  %198 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 10
  %199 = load ptr, ptr %198, align 8, !tbaa !35
  %200 = load i32, ptr %9, align 4, !tbaa !28
  %201 = add nsw i32 %200, 1
  %202 = sext i32 %201 to i64
  %203 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %199, i64 %202
  %204 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %203, i32 0, i32 2
  %205 = load double, ptr %204, align 8, !tbaa !45
  %206 = fsub double %197, %205
  %207 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 14
  %208 = load double, ptr %207, align 8, !tbaa !33
  %209 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 10
  %210 = load ptr, ptr %209, align 8, !tbaa !35
  %211 = load i32, ptr %9, align 4, !tbaa !28
  %212 = add nsw i32 %211, 1
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %210, i64 %213
  %215 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %214, i32 0, i32 3
  %216 = load double, ptr %215, align 8, !tbaa !46
  %217 = fsub double %208, %216
  %218 = call noundef double @_ZN7siscone12phi_in_rangeEd(double noundef %217)
  call void @_ZN7siscone8CtwovectC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %15, double noundef %206, double noundef %218)
  call void @llvm.lifetime.start.p0(i64 16, ptr %16) #6
  %219 = load ptr, ptr %4, align 8, !tbaa !5
  %220 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %219, i32 0, i32 4
  %221 = load double, ptr %220, align 8, !tbaa !29
  %222 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 10
  %223 = load ptr, ptr %222, align 8, !tbaa !35
  %224 = load i32, ptr %9, align 4, !tbaa !28
  %225 = add nsw i32 %224, 1
  %226 = sext i32 %225 to i64
  %227 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %223, i64 %226
  %228 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %227, i32 0, i32 2
  %229 = load double, ptr %228, align 8, !tbaa !45
  %230 = fsub double %221, %229
  %231 = load ptr, ptr %4, align 8, !tbaa !5
  %232 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %231, i32 0, i32 5
  %233 = load double, ptr %232, align 8, !tbaa !32
  %234 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 10
  %235 = load ptr, ptr %234, align 8, !tbaa !35
  %236 = load i32, ptr %9, align 4, !tbaa !28
  %237 = add nsw i32 %236, 1
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %235, i64 %238
  %240 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %239, i32 0, i32 3
  %241 = load double, ptr %240, align 8, !tbaa !46
  %242 = fsub double %233, %241
  %243 = call noundef double @_ZN7siscone12phi_in_rangeEd(double noundef %242)
  call void @_ZN7siscone8CtwovectC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %16, double noundef %230, double noundef %243)
  %244 = call noundef double @_ZN7siscone11dot_productERKNS_8CtwovectES2_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %16)
  store double %244, ptr %11, align 8, !tbaa !31
  %245 = call noundef double @_ZN7siscone13cross_productERKNS_8CtwovectES2_(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 8 dereferenceable(16) %16)
  %246 = call double @llvm.fabs.f64(double %245)
  store double %246, ptr %10, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #6
  %247 = load double, ptr %10, align 8, !tbaa !31
  %248 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 5
  %249 = load double, ptr %248, align 8, !tbaa !48
  %250 = fmul double %247, %249
  store double %250, ptr %17, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  %251 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 4
  %252 = load double, ptr %251, align 8, !tbaa !49
  %253 = load double, ptr %11, align 8, !tbaa !31
  %254 = fsub double %252, %253
  %255 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 6
  %256 = load double, ptr %255, align 8, !tbaa !50
  %257 = fmul double %254, %256
  store double %257, ptr %18, align 8, !tbaa !31
  %258 = load double, ptr %17, align 8, !tbaa !31
  %259 = call noundef double @_ZN7siscone4pow2Ed(double noundef %258)
  %260 = load double, ptr %18, align 8, !tbaa !31
  %261 = fcmp ogt double %259, %260
  br i1 %261, label %262, label %265

262:                                              ; preds = %65
  %263 = load double, ptr %17, align 8, !tbaa !31
  %264 = fdiv double 1.000000e+00, %263
  br label %269

265:                                              ; preds = %65
  %266 = load double, ptr %18, align 8, !tbaa !31
  %267 = fdiv double 1.000000e+00, %266
  %268 = call double @sqrt(double noundef %267) #6
  br label %269

269:                                              ; preds = %265, %262
  %270 = phi double [ %264, %262 ], [ %268, %265 ]
  %271 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 10
  %272 = load ptr, ptr %271, align 8, !tbaa !35
  %273 = load i32, ptr %9, align 4, !tbaa !28
  %274 = sext i32 %273 to i64
  %275 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %272, i64 %274
  %276 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %275, i32 0, i32 6
  store double %270, ptr %276, align 8, !tbaa !51
  %277 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 10
  %278 = load ptr, ptr %277, align 8, !tbaa !35
  %279 = load i32, ptr %9, align 4, !tbaa !28
  %280 = sext i32 %279 to i64
  %281 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %278, i64 %280
  %282 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %281, i32 0, i32 6
  %283 = load double, ptr %282, align 8, !tbaa !51
  %284 = getelementptr inbounds %"class.siscone::Cvicinity", ptr %19, i32 0, i32 10
  %285 = load ptr, ptr %284, align 8, !tbaa !35
  %286 = load i32, ptr %9, align 4, !tbaa !28
  %287 = add nsw i32 %286, 1
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %285, i64 %288
  %290 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %289, i32 0, i32 6
  store double %283, ptr %290, align 8, !tbaa !51
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #6
  br label %291

291:                                              ; preds = %269, %54
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  store i32 0, ptr %8, align 4
  br label %292

292:                                              ; preds = %291, %24
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #6
  %293 = load i32, ptr %8, align 4
  switch i32 %293, label %295 [
    i32 0, label %294
    i32 1, label %294
  ]

294:                                              ; preds = %292, %292
  ret void

295:                                              ; preds = %292
  unreachable
}

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

; Function Attrs: nounwind
declare double @sqrt(double noundef) #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN7siscone10sort_angleEdd(double noundef, double noundef) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN7siscone12phi_in_rangeEd(double noundef) #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7siscone8CtwovectC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN7siscone11dot_productERKNS_8CtwovectES2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN7siscone13cross_productERKNS_8CtwovectES2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN7siscone4pow2Ed(double noundef) #4

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 }

!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, !6, i64 0}
!10 = !{!"_ZTSN7siscone9CvicinityE", !6, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !12, i64 56, !13, i64 64, !17, i64 88, !6, i64 112, !21, i64 120, !12, i64 144, !11, i64 152, !11, i64 160}
!11 = !{!"double", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSSt6vectorIN7siscone9CmomentumESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!17 = !{!"_ZTSSt6vectorIN7siscone19Cvicinity_inclusionESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!"_ZTSSt6vectorIPN7siscone13Cvicinity_elmESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIPN7siscone13Cvicinity_elmESaIS2_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIPN7siscone13Cvicinity_elmESaIS2_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIPN7siscone13Cvicinity_elmESaIS2_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!26, !12, i64 52}
!26 = !{!"_ZTSN7siscone9CmomentumE", !11, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !12, i64 48, !12, i64 52, !27, i64 56}
!27 = !{!"_ZTSN7siscone10CreferenceE", !7, i64 0}
!28 = !{!12, !12, i64 0}
!29 = !{!26, !11, i64 32}
!30 = !{!10, !11, i64 152}
!31 = !{!11, !11, i64 0}
!32 = !{!26, !11, i64 40}
!33 = !{!10, !11, i64 160}
!34 = !{!10, !11, i64 16}
!35 = !{!10, !6, i64 112}
!36 = !{!37, !11, i64 32}
!37 = !{!"_ZTSN7siscone13Cvicinity_elmE", !6, i64 0, !6, i64 8, !11, i64 16, !11, i64 24, !11, i64 32, !38, i64 40, !11, i64 48, !39, i64 56}
!38 = !{!"bool", !7, i64 0}
!39 = !{!"_ZTSNSt7__cxx114listIPN7siscone13Cvicinity_elmESaIS3_EEE", !40, i64 0}
!40 = !{!"_ZTSNSt7__cxx1110_List_baseIPN7siscone13Cvicinity_elmESaIS3_EEE", !41, i64 0}
!41 = !{!"_ZTSNSt7__cxx1110_List_baseIPN7siscone13Cvicinity_elmESaIS3_EE10_List_implE", !42, i64 0}
!42 = !{!"_ZTSNSt8__detail17_List_node_headerE", !43, i64 0, !44, i64 16}
!43 = !{!"_ZTSNSt8__detail15_List_node_baseE", !6, i64 0, !6, i64 8}
!44 = !{!"long", !7, i64 0}
!45 = !{!37, !11, i64 16}
!46 = !{!37, !11, i64 24}
!47 = !{!37, !38, i64 40}
!48 = !{!10, !11, i64 40}
!49 = !{!10, !11, i64 32}
!50 = !{!10, !11, i64 48}
!51 = !{!37, !11, i64 48}


; 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::Ctwovect" = type { double, double }
%"class.siscone::Cvicinity_elm" = type { ptr, ptr, double, double, double, i8, double, %"class.std::__cxx11::list" }
%"class.std::__cxx11::list" = type { %"class.std::__cxx11::_List_base" }
%"class.std::__cxx11::_List_base" = type { %"struct.std::__cxx11::_List_base<siscone::Cvicinity_elm *, std::allocator<siscone::Cvicinity_elm *>>::_List_impl" }
%"struct.std::__cxx11::_List_base<siscone::Cvicinity_elm *, std::allocator<siscone::Cvicinity_elm *>>::_List_impl" = type { %"struct.std::__detail::_List_node_header" }
%"struct.std::__detail::_List_node_header" = type { %"struct.std::__detail::_List_node_base", i64 }
%"struct.std::__detail::_List_node_base" = type { ptr, ptr }

; 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 speculatable willreturn memory(none)
declare double @llvm.fabs.f64(double) #1

; 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 uwtable
define dso_local void @_ZN7siscone9Cvicinity18append_to_vicinityEPNS_9CmomentumE(ptr noundef nonnull align 8 dereferenceable(168) %0, ptr noundef readonly %1) local_unnamed_addr #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.siscone::Ctwovect", align 8
  %6 = alloca %"class.siscone::Ctwovect", align 8
  %7 = load ptr, ptr %0, align 8, !tbaa !5
  %8 = icmp eq ptr %7, %1
  br i1 %8, label %131, label %9

9:                                                ; preds = %2
  %10 = getelementptr inbounds i8, ptr %1, i64 52
  %11 = load i32, ptr %10, align 4, !tbaa !24
  %12 = shl nsw i32 %11, 1
  %13 = getelementptr inbounds i8, ptr %1, i64 32
  %14 = load double, ptr %13, align 8, !tbaa !27
  %15 = getelementptr inbounds i8, ptr %0, i64 152
  %16 = load double, ptr %15, align 8, !tbaa !28
  %17 = fsub double %14, %16
  %18 = getelementptr inbounds i8, ptr %1, i64 40
  %19 = load double, ptr %18, align 8, !tbaa !29
  %20 = getelementptr inbounds i8, ptr %0, i64 160
  %21 = load double, ptr %20, align 8, !tbaa !30
  %22 = fsub double %19, %21
  %23 = fcmp ogt double %22, 0x400921FB54442D18
  br i1 %23, label %24, label %26

24:                                               ; preds = %9
  %25 = fadd double %22, 0xC01921FB54442D18
  br label %30

26:                                               ; preds = %9
  %27 = fcmp olt double %22, 0xC00921FB54442D18
  br i1 %27, label %28, label %30

28:                                               ; preds = %26
  %29 = fadd double %22, 0x401921FB54442D18
  br label %30

30:                                               ; preds = %26, %28, %24
  %.0 = phi double [ %25, %24 ], [ %29, %28 ], [ %22, %26 ]
  %31 = fmul double %.0, %.0
  %32 = tail call double @llvm.fmuladd.f64(double %17, double %17, double %31)
  %33 = getelementptr inbounds i8, ptr %0, i64 16
  %34 = load double, ptr %33, align 8, !tbaa !31
  %35 = fcmp olt double %32, %34
  br i1 %35, label %36, label %131

36:                                               ; preds = %30
  %37 = fdiv double %34, %32
  %38 = fadd double %37, -1.000000e+00
  %39 = tail call double @sqrt(double noundef %38) #6
  %40 = fneg double %.0
  %41 = tail call double @llvm.fmuladd.f64(double %40, double %39, double %17)
  %42 = fmul double %41, 5.000000e-01
  %43 = tail call double @llvm.fmuladd.f64(double %17, double %39, double %.0)
  %44 = fmul double %43, 5.000000e-01
  %45 = tail call noundef double @_ZN7siscone10sort_angleEdd(double noundef %44, double noundef %42)
  %46 = getelementptr inbounds i8, ptr %0, i64 112
  %47 = load ptr, ptr %46, align 8, !tbaa !32
  %48 = sext i32 %12 to i64
  %49 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %47, i64 %48, i32 4
  store double %45, ptr %49, align 8, !tbaa !33
  %50 = load double, ptr %15, align 8, !tbaa !28
  %51 = fadd double %42, %50
  %52 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %47, i64 %48, i32 2
  store double %51, ptr %52, align 8, !tbaa !42
  %53 = load double, ptr %20, align 8, !tbaa !30
  %54 = fadd double %44, %53
  %55 = tail call noundef double @_ZN7siscone12phi_in_rangeEd(double noundef %54)
  %56 = load ptr, ptr %46, align 8, !tbaa !32
  %57 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %56, i64 %48, i32 3
  store double %55, ptr %57, align 8, !tbaa !43
  %58 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %56, i64 %48, i32 5
  store i8 1, ptr %58, align 8, !tbaa !44
  %59 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %56, i64 %48, i32 7
  tail call void @_ZNSt7__cxx114listIPN7siscone13Cvicinity_elmESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %59) #6
  %60 = getelementptr inbounds i8, ptr %0, i64 120
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #6
  %61 = load ptr, ptr %46, align 8, !tbaa !32
  %62 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %61, i64 %48
  store ptr %62, ptr %3, align 8, !tbaa !45
  call void @_ZNSt6vectorIPN7siscone13Cvicinity_elmESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 8 dereferenceable(8) %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  %63 = call double @llvm.fmuladd.f64(double %.0, double %39, double %17)
  %64 = fmul double %63, 5.000000e-01
  %65 = fneg double %17
  %66 = call double @llvm.fmuladd.f64(double %65, double %39, double %.0)
  %67 = fmul double %66, 5.000000e-01
  %68 = call noundef double @_ZN7siscone10sort_angleEdd(double noundef %67, double noundef %64)
  %69 = load ptr, ptr %46, align 8, !tbaa !32
  %70 = or disjoint i32 %12, 1
  %71 = sext i32 %70 to i64
  %72 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %69, i64 %71, i32 4
  store double %68, ptr %72, align 8, !tbaa !33
  %73 = load double, ptr %15, align 8, !tbaa !28
  %74 = fadd double %64, %73
  %75 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %69, i64 %71, i32 2
  store double %74, ptr %75, align 8, !tbaa !42
  %76 = load double, ptr %20, align 8, !tbaa !30
  %77 = fadd double %67, %76
  %78 = call noundef double @_ZN7siscone12phi_in_rangeEd(double noundef %77)
  %79 = load ptr, ptr %46, align 8, !tbaa !32
  %80 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %79, i64 %71, i32 3
  store double %78, ptr %80, align 8, !tbaa !43
  %81 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %79, i64 %71, i32 5
  store i8 0, ptr %81, align 8, !tbaa !44
  %82 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %79, i64 %71, i32 7
  call void @_ZNSt7__cxx114listIPN7siscone13Cvicinity_elmESaIS3_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %82) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #6
  %83 = load ptr, ptr %46, align 8, !tbaa !32
  %84 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %83, i64 %71
  store ptr %84, ptr %4, align 8, !tbaa !45
  call void @_ZNSt6vectorIPN7siscone13Cvicinity_elmESaIS2_EE9push_backEOS2_(ptr noundef nonnull align 8 dereferenceable(24) %60, ptr noundef nonnull align 8 dereferenceable(8) %4)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #6
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %5) #6
  %85 = load double, ptr %15, align 8, !tbaa !28
  %86 = load ptr, ptr %46, align 8, !tbaa !32
  %87 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %86, i64 %71
  %88 = getelementptr inbounds i8, ptr %87, i64 16
  %89 = load double, ptr %88, align 8, !tbaa !42
  %90 = fsub double %85, %89
  %91 = load double, ptr %20, align 8, !tbaa !30
  %92 = getelementptr inbounds i8, ptr %87, i64 24
  %93 = load double, ptr %92, align 8, !tbaa !43
  %94 = fsub double %91, %93
  %95 = call noundef double @_ZN7siscone12phi_in_rangeEd(double noundef %94)
  call void @_ZN7siscone8CtwovectC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %5, double noundef %90, double noundef %95)
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #6
  %96 = load double, ptr %13, align 8, !tbaa !27
  %97 = load ptr, ptr %46, align 8, !tbaa !32
  %98 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %97, i64 %71
  %99 = getelementptr inbounds i8, ptr %98, i64 16
  %100 = load double, ptr %99, align 8, !tbaa !42
  %101 = fsub double %96, %100
  %102 = load double, ptr %18, align 8, !tbaa !29
  %103 = getelementptr inbounds i8, ptr %98, i64 24
  %104 = load double, ptr %103, align 8, !tbaa !43
  %105 = fsub double %102, %104
  %106 = call noundef double @_ZN7siscone12phi_in_rangeEd(double noundef %105)
  call void @_ZN7siscone8CtwovectC2Edd(ptr noundef nonnull align 8 dereferenceable(16) %6, double noundef %101, double noundef %106)
  %107 = call noundef double @_ZN7siscone11dot_productERKNS_8CtwovectES2_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %108 = call noundef double @_ZN7siscone13cross_productERKNS_8CtwovectES2_(ptr noundef nonnull align 8 dereferenceable(16) %5, ptr noundef nonnull align 8 dereferenceable(16) %6)
  %109 = call double @llvm.fabs.f64(double %108)
  %110 = getelementptr inbounds i8, ptr %0, i64 40
  %111 = load double, ptr %110, align 8, !tbaa !46
  %112 = fmul double %109, %111
  %113 = getelementptr inbounds i8, ptr %0, i64 32
  %114 = load double, ptr %113, align 8, !tbaa !47
  %115 = fsub double %114, %107
  %116 = getelementptr inbounds i8, ptr %0, i64 48
  %117 = load double, ptr %116, align 8, !tbaa !48
  %118 = fmul double %115, %117
  %119 = call noundef double @_ZN7siscone4pow2Ed(double noundef %112)
  %120 = fcmp ogt double %119, %118
  br i1 %120, label %121, label %123

121:                                              ; preds = %36
  %122 = fdiv double 1.000000e+00, %112
  br label %126

123:                                              ; preds = %36
  %124 = fdiv double 1.000000e+00, %118
  %125 = call double @sqrt(double noundef %124) #6
  br label %126

126:                                              ; preds = %123, %121
  %127 = phi double [ %122, %121 ], [ %125, %123 ]
  %128 = load ptr, ptr %46, align 8, !tbaa !32
  %129 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %128, i64 %48, i32 6
  store double %127, ptr %129, align 8, !tbaa !49
  %130 = getelementptr inbounds %"class.siscone::Cvicinity_elm", ptr %128, i64 %71, i32 6
  store double %127, ptr %130, align 8, !tbaa !49
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %5) #6
  br label %131

131:                                              ; preds = %30, %126, %2
  ret void
}

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN7siscone10sort_angleEdd(double noundef, double noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN7siscone12phi_in_rangeEd(double noundef) local_unnamed_addr #4

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7siscone8CtwovectC2Edd(ptr noundef nonnull align 8 dereferenceable(16), double noundef, double noundef) unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN7siscone11dot_productERKNS_8CtwovectES2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN7siscone13cross_productERKNS_8CtwovectES2_(ptr noundef nonnull align 8 dereferenceable(16), ptr noundef nonnull align 8 dereferenceable(16)) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZN7siscone4pow2Ed(double noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { mustprogress nofree nounwind willreturn memory(write) "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 }

!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, !7, i64 0}
!6 = !{!"_ZTSN7siscone9CvicinityE", !7, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !11, i64 56, !12, i64 64, !16, i64 88, !7, i64 112, !20, i64 120, !11, i64 144, !10, i64 152, !10, i64 160}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"_ZTSSt6vectorIN7siscone9CmomentumESaIS1_EE", !13, i64 0}
!13 = !{!"_ZTSSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE12_Vector_implE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseIN7siscone9CmomentumESaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!16 = !{!"_ZTSSt6vectorIN7siscone19Cvicinity_inclusionESaIS1_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIN7siscone19Cvicinity_inclusionESaIS1_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!20 = !{!"_ZTSSt6vectorIPN7siscone13Cvicinity_elmESaIS2_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseIPN7siscone13Cvicinity_elmESaIS2_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseIPN7siscone13Cvicinity_elmESaIS2_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIPN7siscone13Cvicinity_elmESaIS2_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!24 = !{!25, !11, i64 52}
!25 = !{!"_ZTSN7siscone9CmomentumE", !10, i64 0, !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !11, i64 48, !11, i64 52, !26, i64 56}
!26 = !{!"_ZTSN7siscone10CreferenceE", !8, i64 0}
!27 = !{!25, !10, i64 32}
!28 = !{!6, !10, i64 152}
!29 = !{!25, !10, i64 40}
!30 = !{!6, !10, i64 160}
!31 = !{!6, !10, i64 16}
!32 = !{!6, !7, i64 112}
!33 = !{!34, !10, i64 32}
!34 = !{!"_ZTSN7siscone13Cvicinity_elmE", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !35, i64 40, !10, i64 48, !36, i64 56}
!35 = !{!"bool", !8, i64 0}
!36 = !{!"_ZTSNSt7__cxx114listIPN7siscone13Cvicinity_elmESaIS3_EEE", !37, i64 0}
!37 = !{!"_ZTSNSt7__cxx1110_List_baseIPN7siscone13Cvicinity_elmESaIS3_EEE", !38, i64 0}
!38 = !{!"_ZTSNSt7__cxx1110_List_baseIPN7siscone13Cvicinity_elmESaIS3_EE10_List_implE", !39, i64 0}
!39 = !{!"_ZTSNSt8__detail17_List_node_headerE", !40, i64 0, !41, i64 16}
!40 = !{!"_ZTSNSt8__detail15_List_node_baseE", !7, i64 0, !7, i64 8}
!41 = !{!"long", !8, i64 0}
!42 = !{!34, !10, i64 16}
!43 = !{!34, !10, i64 24}
!44 = !{!34, !35, i64 40}
!45 = !{!7, !7, i64 0}
!46 = !{!6, !10, i64 40}
!47 = !{!6, !10, i64 32}
!48 = !{!6, !10, i64 48}
!49 = !{!34, !10, i64 48}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass