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

; 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.siscone::hash_cones" = type { ptr, i32, i32, double }
%"class.siscone::hash_element" = type { %"class.siscone::Creference", double, double, i8, 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 willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) #1

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7siscone10hash_cones6insertEPNS_9CmomentumES2_S2_bb(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i1 noundef zeroext %4, i1 noundef zeroext %5) #2 align 2 personality ptr @__gxx_personality_v0 {
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i8, align 1
  %13 = alloca i8, align 1
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  %19 = zext i1 %4 to i8
  store i8 %19, ptr %12, align 1, !tbaa !9
  %20 = zext i1 %5 to i8
  store i8 %20, ptr %13, align 1, !tbaa !9
  %21 = load ptr, ptr %8, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #7
  %22 = load ptr, ptr %9, align 8, !tbaa !5
  %23 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %22, i32 0, i32 8
  %24 = getelementptr inbounds %"class.siscone::Creference", ptr %23, i32 0, i32 0
  %25 = getelementptr inbounds [3 x i32], ptr %24, i64 0, i64 0
  %26 = load i32, ptr %25, align 8, !tbaa !11
  %27 = getelementptr inbounds %"class.siscone::hash_cones", ptr %21, i32 0, i32 2
  %28 = load i32, ptr %27, align 4, !tbaa !13
  %29 = and i32 %26, %28
  store i32 %29, ptr %15, align 4, !tbaa !11
  %30 = getelementptr inbounds %"class.siscone::hash_cones", ptr %21, i32 0, i32 0
  %31 = load ptr, ptr %30, align 8, !tbaa !16
  %32 = load i32, ptr %15, align 4, !tbaa !11
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds ptr, ptr %31, i64 %33
  %35 = load ptr, ptr %34, align 8, !tbaa !5
  store ptr %35, ptr %14, align 8, !tbaa !5
  br label %36

36:                                               ; preds = %147, %6
  %37 = load ptr, ptr %14, align 8, !tbaa !5
  %38 = icmp eq ptr %37, null
  br i1 %38, label %39, label %104

39:                                               ; preds = %36
  %40 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 48) #8
  invoke void @_ZN7siscone12hash_elementC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %40)
          to label %41 unwind label %100

41:                                               ; preds = %39
  store ptr %40, ptr %14, align 8, !tbaa !5
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %42, i32 0, i32 8
  %44 = load ptr, ptr %14, align 8, !tbaa !5
  %45 = getelementptr inbounds %"class.siscone::hash_element", ptr %44, i32 0, i32 0
  %46 = call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7siscone10CreferenceaSERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %45, ptr noundef nonnull align 4 dereferenceable(12) %43)
  %47 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN7siscone9Cmomentum12build_etaphiEv(ptr noundef nonnull align 8 dereferenceable(68) %47)
  %48 = load ptr, ptr %9, align 8, !tbaa !5
  %49 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %48, i32 0, i32 4
  %50 = load double, ptr %49, align 8, !tbaa !17
  %51 = load ptr, ptr %14, align 8, !tbaa !5
  %52 = getelementptr inbounds %"class.siscone::hash_element", ptr %51, i32 0, i32 1
  store double %50, ptr %52, align 8, !tbaa !20
  %53 = load ptr, ptr %9, align 8, !tbaa !5
  %54 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %53, i32 0, i32 5
  %55 = load double, ptr %54, align 8, !tbaa !22
  %56 = load ptr, ptr %14, align 8, !tbaa !5
  %57 = getelementptr inbounds %"class.siscone::hash_element", ptr %56, i32 0, i32 2
  store double %55, ptr %57, align 8, !tbaa !23
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = load ptr, ptr %10, align 8, !tbaa !5
  %60 = call noundef zeroext i1 @_ZN7siscone10hash_cones9is_insideEPNS_9CmomentumES2_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef %58, ptr noundef %59)
  %61 = zext i1 %60 to i32
  %62 = load i8, ptr %12, align 1, !tbaa !9, !range !24, !noundef !25
  %63 = trunc i8 %62 to i1
  %64 = zext i1 %63 to i32
  %65 = xor i32 %61, %64
  %66 = icmp ne i32 %65, 0
  br i1 %66, label %77, label %67

67:                                               ; preds = %41
  %68 = load ptr, ptr %9, align 8, !tbaa !5
  %69 = load ptr, ptr %11, align 8, !tbaa !5
  %70 = call noundef zeroext i1 @_ZN7siscone10hash_cones9is_insideEPNS_9CmomentumES2_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef %68, ptr noundef %69)
  %71 = zext i1 %70 to i32
  %72 = load i8, ptr %13, align 1, !tbaa !9, !range !24, !noundef !25
  %73 = trunc i8 %72 to i1
  %74 = zext i1 %73 to i32
  %75 = xor i32 %71, %74
  %76 = icmp ne i32 %75, 0
  br label %77

77:                                               ; preds = %67, %41
  %78 = phi i1 [ true, %41 ], [ %76, %67 ]
  %79 = xor i1 %78, true
  %80 = load ptr, ptr %14, align 8, !tbaa !5
  %81 = getelementptr inbounds %"class.siscone::hash_element", ptr %80, i32 0, i32 3
  %82 = zext i1 %79 to i8
  store i8 %82, ptr %81, align 8, !tbaa !26
  %83 = getelementptr inbounds %"class.siscone::hash_cones", ptr %21, i32 0, i32 0
  %84 = load ptr, ptr %83, align 8, !tbaa !16
  %85 = load i32, ptr %15, align 4, !tbaa !11
  %86 = sext i32 %85 to i64
  %87 = getelementptr inbounds ptr, ptr %84, i64 %86
  %88 = load ptr, ptr %87, align 8, !tbaa !5
  %89 = load ptr, ptr %14, align 8, !tbaa !5
  %90 = getelementptr inbounds %"class.siscone::hash_element", ptr %89, i32 0, i32 4
  store ptr %88, ptr %90, align 8, !tbaa !27
  %91 = load ptr, ptr %14, align 8, !tbaa !5
  %92 = getelementptr inbounds %"class.siscone::hash_cones", ptr %21, i32 0, i32 0
  %93 = load ptr, ptr %92, align 8, !tbaa !16
  %94 = load i32, ptr %15, align 4, !tbaa !11
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds ptr, ptr %93, i64 %95
  store ptr %91, ptr %96, align 8, !tbaa !5
  %97 = getelementptr inbounds %"class.siscone::hash_cones", ptr %21, i32 0, i32 1
  %98 = load i32, ptr %97, align 8, !tbaa !28
  %99 = add nsw i32 %98, 1
  store i32 %99, ptr %97, align 8, !tbaa !28
  store i32 0, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %149

100:                                              ; preds = %39
  %101 = landingpad { ptr, i32 }
          cleanup
  %102 = extractvalue { ptr, i32 } %101, 0
  store ptr %102, ptr %16, align 8
  %103 = extractvalue { ptr, i32 } %101, 1
  store i32 %103, ptr %17, align 4
  call void @_ZdlPvm(ptr noundef %40, i64 noundef 48) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  br label %151

104:                                              ; preds = %36
  %105 = load ptr, ptr %9, align 8, !tbaa !5
  %106 = getelementptr inbounds %"class.siscone::Cmomentum", ptr %105, i32 0, i32 8
  %107 = load ptr, ptr %14, align 8, !tbaa !5
  %108 = getelementptr inbounds %"class.siscone::hash_element", ptr %107, i32 0, i32 0
  %109 = call noundef zeroext i1 @_ZN7sisconeeqERKNS_10CreferenceES2_(ptr noundef nonnull align 4 dereferenceable(12) %106, ptr noundef nonnull align 4 dereferenceable(12) %108)
  br i1 %109, label %110, label %143

110:                                              ; preds = %104
  %111 = load ptr, ptr %14, align 8, !tbaa !5
  %112 = getelementptr inbounds %"class.siscone::hash_element", ptr %111, i32 0, i32 3
  %113 = load i8, ptr %112, align 8, !tbaa !26, !range !24, !noundef !25
  %114 = trunc i8 %113 to i1
  br i1 %114, label %115, label %142

115:                                              ; preds = %110
  %116 = load ptr, ptr %9, align 8, !tbaa !5
  call void @_ZN7siscone9Cmomentum12build_etaphiEv(ptr noundef nonnull align 8 dereferenceable(68) %116)
  %117 = load ptr, ptr %9, align 8, !tbaa !5
  %118 = load ptr, ptr %10, align 8, !tbaa !5
  %119 = call noundef zeroext i1 @_ZN7siscone10hash_cones9is_insideEPNS_9CmomentumES2_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef %117, ptr noundef %118)
  %120 = zext i1 %119 to i32
  %121 = load i8, ptr %12, align 1, !tbaa !9, !range !24, !noundef !25
  %122 = trunc i8 %121 to i1
  %123 = zext i1 %122 to i32
  %124 = xor i32 %120, %123
  %125 = icmp ne i32 %124, 0
  br i1 %125, label %136, label %126

126:                                              ; preds = %115
  %127 = load ptr, ptr %9, align 8, !tbaa !5
  %128 = load ptr, ptr %11, align 8, !tbaa !5
  %129 = call noundef zeroext i1 @_ZN7siscone10hash_cones9is_insideEPNS_9CmomentumES2_(ptr noundef nonnull align 8 dereferenceable(24) %21, ptr noundef %127, ptr noundef %128)
  %130 = zext i1 %129 to i32
  %131 = load i8, ptr %13, align 1, !tbaa !9, !range !24, !noundef !25
  %132 = trunc i8 %131 to i1
  %133 = zext i1 %132 to i32
  %134 = xor i32 %130, %133
  %135 = icmp ne i32 %134, 0
  br label %136

136:                                              ; preds = %126, %115
  %137 = phi i1 [ true, %115 ], [ %135, %126 ]
  %138 = xor i1 %137, true
  %139 = load ptr, ptr %14, align 8, !tbaa !5
  %140 = getelementptr inbounds %"class.siscone::hash_element", ptr %139, i32 0, i32 3
  %141 = zext i1 %138 to i8
  store i8 %141, ptr %140, align 8, !tbaa !26
  br label %142

142:                                              ; preds = %136, %110
  store i32 0, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %149

143:                                              ; preds = %104
  %144 = load ptr, ptr %14, align 8, !tbaa !5
  %145 = getelementptr inbounds %"class.siscone::hash_element", ptr %144, i32 0, i32 4
  %146 = load ptr, ptr %145, align 8, !tbaa !27
  store ptr %146, ptr %14, align 8, !tbaa !5
  br label %147

147:                                              ; preds = %143
  br i1 true, label %36, label %148, !llvm.loop !29

148:                                              ; preds = %147
  store i32 1, ptr %7, align 4
  store i32 1, ptr %18, align 4
  br label %149

149:                                              ; preds = %148, %142, %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  %150 = load i32, ptr %7, align 4
  ret i32 %150

151:                                              ; preds = %100
  %152 = load ptr, ptr %16, align 8
  %153 = load i32, ptr %17, align 4
  %154 = insertvalue { ptr, i32 } poison, ptr %152, 0
  %155 = insertvalue { ptr, i32 } %154, i32 %153, 1
  resume { ptr, i32 } %155
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #3

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

declare i32 @__gxx_personality_v0(...)

declare noundef nonnull align 4 dereferenceable(12) ptr @_ZN7siscone10CreferenceaSERKS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #5

declare void @_ZN7siscone9Cmomentum12build_etaphiEv(ptr noundef nonnull align 8 dereferenceable(68)) #5

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7siscone10hash_cones9is_insideEPNS_9CmomentumES2_(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef) #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7sisconeeqERKNS_10CreferenceES2_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) #6

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nobuiltin 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 #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 = { nobuiltin allocsize(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 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 = { "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 = { 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 #7 = { nounwind }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin nounwind }

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

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


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nobuiltin nounwind
declare void @_ZdlPvm(ptr noundef, i64 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN7siscone10hash_cones6insertEPNS_9CmomentumES2_S2_bb(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i1 noundef zeroext %4, i1 noundef zeroext %5) local_unnamed_addr #1 align 2 personality ptr @__gxx_personality_v0 {
  %7 = getelementptr inbounds i8, ptr %1, i64 56
  %8 = load i32, ptr %7, align 8, !tbaa !5
  %9 = getelementptr inbounds i8, ptr %0, i64 12
  %10 = load i32, ptr %9, align 4, !tbaa !9
  %11 = and i32 %10, %8
  %12 = load ptr, ptr %0, align 8, !tbaa !13
  %13 = sext i32 %11 to i64
  %14 = getelementptr inbounds ptr, ptr %12, i64 %13
  %.03638 = load ptr, ptr %14, align 8, !tbaa !14
  %15 = icmp eq ptr %.03638, null
  br i1 %15, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %56, %6
  %16 = tail call noalias noundef nonnull dereferenceable(48) ptr @_Znwm(i64 noundef 48) #6
  invoke void @_ZN7siscone12hash_elementC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %16)
          to label %17 unwind label %39

17:                                               ; preds = %._crit_edge
  %18 = tail call noundef nonnull align 4 dereferenceable(12) ptr @_ZN7siscone10CreferenceaSERKS0_(ptr noundef nonnull align 4 dereferenceable(12) %16, ptr noundef nonnull align 4 dereferenceable(12) %7)
  tail call void @_ZN7siscone9Cmomentum12build_etaphiEv(ptr noundef nonnull align 8 dereferenceable(68) %1)
  %19 = getelementptr inbounds i8, ptr %1, i64 32
  %20 = getelementptr inbounds i8, ptr %16, i64 16
  %21 = load <2 x double>, ptr %19, align 8, !tbaa !15
  store <2 x double> %21, ptr %20, align 8, !tbaa !15
  %22 = tail call noundef zeroext i1 @_ZN7siscone10hash_cones9is_insideEPNS_9CmomentumES2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull %1, ptr noundef %2)
  %23 = xor i1 %22, %4
  br i1 %23, label %29, label %24

24:                                               ; preds = %17
  %25 = tail call noundef zeroext i1 @_ZN7siscone10hash_cones9is_insideEPNS_9CmomentumES2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull %1, ptr noundef %3)
  %26 = xor i1 %25, %5
  %27 = xor i1 %26, true
  %28 = zext i1 %27 to i8
  br label %29

29:                                               ; preds = %24, %17
  %30 = phi i8 [ 0, %17 ], [ %28, %24 ]
  %31 = getelementptr inbounds i8, ptr %16, i64 32
  store i8 %30, ptr %31, align 8, !tbaa !16
  %32 = load ptr, ptr %0, align 8, !tbaa !13
  %33 = getelementptr inbounds ptr, ptr %32, i64 %13
  %34 = load ptr, ptr %33, align 8, !tbaa !14
  %35 = getelementptr inbounds i8, ptr %16, i64 40
  store ptr %34, ptr %35, align 8, !tbaa !20
  store ptr %16, ptr %33, align 8, !tbaa !14
  %36 = getelementptr inbounds i8, ptr %0, i64 8
  %37 = load i32, ptr %36, align 8, !tbaa !21
  %38 = add nsw i32 %37, 1
  store i32 %38, ptr %36, align 8, !tbaa !21
  br label %59

39:                                               ; preds = %._crit_edge
  %40 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %16, i64 noundef 48) #7
  resume { ptr, i32 } %40

.lr.ph:                                           ; preds = %6, %56
  %.03639 = phi ptr [ %.036, %56 ], [ %.03638, %6 ]
  %41 = tail call noundef zeroext i1 @_ZN7sisconeeqERKNS_10CreferenceES2_(ptr noundef nonnull align 4 dereferenceable(12) %7, ptr noundef nonnull align 4 dereferenceable(12) %.03639)
  br i1 %41, label %42, label %56

42:                                               ; preds = %.lr.ph
  %43 = getelementptr inbounds i8, ptr %.03639, i64 32
  %44 = load i8, ptr %43, align 8, !tbaa !16, !range !22, !noundef !23
  %45 = trunc nuw i8 %44 to i1
  br i1 %45, label %46, label %59

46:                                               ; preds = %42
  tail call void @_ZN7siscone9Cmomentum12build_etaphiEv(ptr noundef nonnull align 8 dereferenceable(68) %1)
  %47 = tail call noundef zeroext i1 @_ZN7siscone10hash_cones9is_insideEPNS_9CmomentumES2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull %1, ptr noundef %2)
  %48 = xor i1 %47, %4
  br i1 %48, label %54, label %49

49:                                               ; preds = %46
  %50 = tail call noundef zeroext i1 @_ZN7siscone10hash_cones9is_insideEPNS_9CmomentumES2_(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull %1, ptr noundef %3)
  %51 = xor i1 %50, %5
  %52 = xor i1 %51, true
  %53 = zext i1 %52 to i8
  br label %54

54:                                               ; preds = %49, %46
  %55 = phi i8 [ 0, %46 ], [ %53, %49 ]
  store i8 %55, ptr %43, align 8, !tbaa !16
  br label %59

56:                                               ; preds = %.lr.ph
  %57 = getelementptr inbounds i8, ptr %.03639, i64 40
  %.036 = load ptr, ptr %57, align 8, !tbaa !14
  %58 = icmp eq ptr %.036, null
  br i1 %58, label %._crit_edge, label %.lr.ph, !llvm.loop !24

59:                                               ; preds = %42, %54, %29
  ret i32 0
}

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #2

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

declare i32 @__gxx_personality_v0(...)

declare noundef nonnull align 4 dereferenceable(12) ptr @_ZN7siscone10CreferenceaSERKS0_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #4

declare void @_ZN7siscone9Cmomentum12build_etaphiEv(ptr noundef nonnull align 8 dereferenceable(68)) local_unnamed_addr #4

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef zeroext i1 @_ZN7sisconeeqERKNS_10CreferenceES2_(ptr noundef nonnull align 4 dereferenceable(12), ptr noundef nonnull align 4 dereferenceable(12)) local_unnamed_addr #5

attributes #0 = { nobuiltin 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 #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "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 = { 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 #6 = { builtin allocsize(0) }
attributes #7 = { builtin 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 12}
!10 = !{!"_ZTSN7siscone10hash_conesE", !11, i64 0, !6, i64 8, !6, i64 12, !12, i64 16}
!11 = !{!"any pointer", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!10, !11, i64 0}
!14 = !{!11, !11, i64 0}
!15 = !{!12, !12, i64 0}
!16 = !{!17, !19, i64 32}
!17 = !{!"_ZTSN7siscone12hash_elementE", !18, i64 0, !12, i64 16, !12, i64 24, !19, i64 32, !11, i64 40}
!18 = !{!"_ZTSN7siscone10CreferenceE", !7, i64 0}
!19 = !{!"bool", !7, i64 0}
!20 = !{!17, !11, i64 40}
!21 = !{!10, !6, i64 8}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}


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