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

; 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_spherical::CSphtheta_phi_range" = type { i32, i32 }

@_ZN17siscone_spherical19CSphtheta_phi_range9theta_minE = external dso_local global double, align 8
@_ZN17siscone_spherical19CSphtheta_phi_range9theta_maxE = external dso_local global double, align 8

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN17siscone_spherical19CSphtheta_phi_rangeC2Eddd(ptr noundef nonnull align 4 dereferenceable(8) %0, double noundef %1, double noundef %2, double noundef %3) unnamed_addr #0 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store double %1, ptr %6, align 8, !tbaa !9
  store double %2, ptr %7, align 8, !tbaa !9
  store double %3, ptr %8, align 8, !tbaa !9
  %22 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %23 = load double, ptr %6, align 8, !tbaa !9
  %24 = load double, ptr %8, align 8, !tbaa !9
  %25 = fsub double %23, %24
  store double %25, ptr %10, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %26 = load double, ptr @_ZN17siscone_spherical19CSphtheta_phi_range9theta_minE, align 8, !tbaa !9
  %27 = fadd double %26, 1.000000e-05
  store double %27, ptr %11, align 8, !tbaa !9
  %28 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %29 = load double, ptr %28, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  store double %29, ptr %9, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %30 = load double, ptr %6, align 8, !tbaa !9
  %31 = load double, ptr %8, align 8, !tbaa !9
  %32 = fadd double %30, %31
  store double %32, ptr %13, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %33 = load double, ptr @_ZN17siscone_spherical19CSphtheta_phi_range9theta_maxE, align 8, !tbaa !9
  %34 = fsub double %33, 1.000000e-05
  store double %34, ptr %14, align 8, !tbaa !9
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %13, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %36 = load double, ptr %35, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  store double %36, ptr %12, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #4
  %37 = load double, ptr %9, align 8, !tbaa !9
  %38 = call noundef i32 @_ZN17siscone_spherical19CSphtheta_phi_range14get_theta_cellEd(ptr noundef nonnull align 4 dereferenceable(8) %22, double noundef %37)
  store i32 %38, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %39 = load double, ptr %12, align 8, !tbaa !9
  %40 = call noundef i32 @_ZN17siscone_spherical19CSphtheta_phi_range14get_theta_cellEd(ptr noundef nonnull align 4 dereferenceable(8) %22, double noundef %39)
  store i32 %40, ptr %16, align 4, !tbaa !11
  %41 = load i32, ptr %16, align 4, !tbaa !11
  %42 = load i32, ptr %15, align 4, !tbaa !11
  %43 = sub i32 %41, %42
  %44 = load i32, ptr %16, align 4, !tbaa !11
  %45 = add i32 %43, %44
  %46 = getelementptr inbounds %"class.siscone_spherical::CSphtheta_phi_range", ptr %22, i32 0, i32 0
  store i32 %45, ptr %46, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #4
  %47 = load double, ptr %8, align 8, !tbaa !9
  %48 = fdiv double %47, 0x400921FB54442D18
  %49 = call double @asin(double noundef %48) #4
  store double %49, ptr %19, align 8, !tbaa !9
  %50 = load double, ptr %9, align 8, !tbaa !9
  %51 = load double, ptr @_ZN17siscone_spherical19CSphtheta_phi_range9theta_minE, align 8, !tbaa !9
  %52 = load double, ptr %19, align 8, !tbaa !9
  %53 = fadd double %51, %52
  %54 = fcmp ole double %50, %53
  br i1 %54, label %55, label %56

55:                                               ; preds = %4
  store double 0xC00921F61616CADF, ptr %17, align 8, !tbaa !9
  store double 0x400921F61616CADF, ptr %18, align 8, !tbaa !9
  br label %111

56:                                               ; preds = %4
  %57 = load double, ptr %12, align 8, !tbaa !9
  %58 = load double, ptr @_ZN17siscone_spherical19CSphtheta_phi_range9theta_maxE, align 8, !tbaa !9
  %59 = load double, ptr %19, align 8, !tbaa !9
  %60 = fsub double %58, %59
  %61 = fcmp oge double %57, %60
  br i1 %61, label %62, label %63

62:                                               ; preds = %56
  store double 0xC00921F61616CADF, ptr %17, align 8, !tbaa !9
  store double 0x400921F61616CADF, ptr %18, align 8, !tbaa !9
  br label %110

63:                                               ; preds = %56
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #4
  %64 = load double, ptr %9, align 8, !tbaa !9
  %65 = call double @sin(double noundef %64) #4
  %66 = fdiv double 1.000000e+00, %65
  store double %66, ptr %20, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #4
  %67 = load double, ptr %12, align 8, !tbaa !9
  %68 = call double @sin(double noundef %67) #4
  %69 = fdiv double 1.000000e+00, %68
  store double %69, ptr %21, align 8, !tbaa !9
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull align 8 dereferenceable(8) %21)
  %71 = load double, ptr %70, align 8, !tbaa !9
  store double %71, ptr %19, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #4
  %72 = load double, ptr %7, align 8, !tbaa !9
  %73 = load double, ptr %8, align 8, !tbaa !9
  %74 = fsub double %72, %73
  %75 = load double, ptr %19, align 8, !tbaa !9
  %76 = fmul double %74, %75
  store double %76, ptr %17, align 8, !tbaa !9
  br label %77

77:                                               ; preds = %80, %63
  %78 = load double, ptr %17, align 8, !tbaa !9
  %79 = fcmp olt double %78, 0xC00921FB54442D18
  br i1 %79, label %80, label %83

80:                                               ; preds = %77
  %81 = load double, ptr %17, align 8, !tbaa !9
  %82 = fadd double %81, 0x401921FB54442D18
  store double %82, ptr %17, align 8, !tbaa !9
  br label %77, !llvm.loop !15

83:                                               ; preds = %77
  br label %84

84:                                               ; preds = %87, %83
  %85 = load double, ptr %17, align 8, !tbaa !9
  %86 = fcmp ogt double %85, 0x400921FB54442D18
  br i1 %86, label %87, label %90

87:                                               ; preds = %84
  %88 = load double, ptr %17, align 8, !tbaa !9
  %89 = fsub double %88, 0x401921FB54442D18
  store double %89, ptr %17, align 8, !tbaa !9
  br label %84, !llvm.loop !17

90:                                               ; preds = %84
  %91 = load double, ptr %7, align 8, !tbaa !9
  %92 = load double, ptr %8, align 8, !tbaa !9
  %93 = fsub double %91, %92
  %94 = load double, ptr %19, align 8, !tbaa !9
  %95 = fmul double %93, %94
  store double %95, ptr %18, align 8, !tbaa !9
  br label %96

96:                                               ; preds = %99, %90
  %97 = load double, ptr %18, align 8, !tbaa !9
  %98 = fcmp olt double %97, 0xC00921FB54442D18
  br i1 %98, label %99, label %102

99:                                               ; preds = %96
  %100 = load double, ptr %18, align 8, !tbaa !9
  %101 = fadd double %100, 0x401921FB54442D18
  store double %101, ptr %18, align 8, !tbaa !9
  br label %96, !llvm.loop !18

102:                                              ; preds = %96
  br label %103

103:                                              ; preds = %106, %102
  %104 = load double, ptr %18, align 8, !tbaa !9
  %105 = fcmp ogt double %104, 0x400921FB54442D18
  br i1 %105, label %106, label %109

106:                                              ; preds = %103
  %107 = load double, ptr %18, align 8, !tbaa !9
  %108 = fsub double %107, 0x401921FB54442D18
  store double %108, ptr %18, align 8, !tbaa !9
  br label %103, !llvm.loop !19

109:                                              ; preds = %103
  br label %110

110:                                              ; preds = %109, %62
  br label %111

111:                                              ; preds = %110, %55
  %112 = load double, ptr %17, align 8, !tbaa !9
  %113 = call noundef i32 @_ZN17siscone_spherical19CSphtheta_phi_range12get_phi_cellEd(ptr noundef nonnull align 4 dereferenceable(8) %22, double noundef %112)
  store i32 %113, ptr %15, align 4, !tbaa !11
  %114 = load double, ptr %18, align 8, !tbaa !9
  %115 = call noundef i32 @_ZN17siscone_spherical19CSphtheta_phi_range12get_phi_cellEd(ptr noundef nonnull align 4 dereferenceable(8) %22, double noundef %114)
  store i32 %115, ptr %16, align 4, !tbaa !11
  %116 = load double, ptr %18, align 8, !tbaa !9
  %117 = load double, ptr %17, align 8, !tbaa !9
  %118 = fcmp ogt double %116, %117
  br i1 %118, label %119, label %126

119:                                              ; preds = %111
  %120 = load i32, ptr %16, align 4, !tbaa !11
  %121 = load i32, ptr %15, align 4, !tbaa !11
  %122 = sub i32 %120, %121
  %123 = load i32, ptr %16, align 4, !tbaa !11
  %124 = add i32 %122, %123
  %125 = getelementptr inbounds %"class.siscone_spherical::CSphtheta_phi_range", ptr %22, i32 0, i32 1
  store i32 %124, ptr %125, align 4, !tbaa !20
  br label %141

126:                                              ; preds = %111
  %127 = load i32, ptr %15, align 4, !tbaa !11
  %128 = load i32, ptr %16, align 4, !tbaa !11
  %129 = icmp eq i32 %127, %128
  br i1 %129, label %130, label %131

130:                                              ; preds = %126
  br label %138

131:                                              ; preds = %126
  %132 = load i32, ptr %15, align 4, !tbaa !11
  %133 = load i32, ptr %16, align 4, !tbaa !11
  %134 = sub i32 %132, %133
  %135 = xor i32 -1, %134
  %136 = load i32, ptr %16, align 4, !tbaa !11
  %137 = add i32 %135, %136
  br label %138

138:                                              ; preds = %131, %130
  %139 = phi i32 [ -1, %130 ], [ %137, %131 ]
  %140 = getelementptr inbounds %"class.siscone_spherical::CSphtheta_phi_range", ptr %22, i32 0, i32 1
  store i32 %139, ptr %140, align 4, !tbaa !20
  br label %141

141:                                              ; preds = %138, %119
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  ret void
}

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

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

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

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

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

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

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

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

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !12, i64 0}
!14 = !{!"_ZTSN17siscone_spherical19CSphtheta_phi_rangeE", !12, i64 0, !12, i64 4}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = distinct !{!17, !16}
!18 = distinct !{!18, !16}
!19 = distinct !{!19, !16}
!20 = !{!14, !12, i64 4}


; 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"

@_ZN17siscone_spherical19CSphtheta_phi_range9theta_minE = external dso_local local_unnamed_addr global double, align 8
@_ZN17siscone_spherical19CSphtheta_phi_range9theta_maxE = external dso_local local_unnamed_addr global double, align 8

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_ZN17siscone_spherical19CSphtheta_phi_rangeC2Eddd(ptr noundef nonnull align 4 dereferenceable(8) %0, double noundef %1, double noundef %2, double noundef %3) unnamed_addr #0 align 2 {
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #4
  %11 = fsub double %1, %3
  store double %11, ptr %5, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #4
  %12 = load double, ptr @_ZN17siscone_spherical19CSphtheta_phi_range9theta_minE, align 8, !tbaa !5
  %13 = fadd double %12, 1.000000e-05
  store double %13, ptr %6, align 8, !tbaa !5
  %14 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %15 = load double, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #4
  %16 = fadd double %1, %3
  store double %16, ptr %7, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  %17 = load double, ptr @_ZN17siscone_spherical19CSphtheta_phi_range9theta_maxE, align 8, !tbaa !5
  %18 = fadd double %17, -1.000000e-05
  store double %18, ptr %8, align 8, !tbaa !5
  %19 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %7, ptr noundef nonnull align 8 dereferenceable(8) %8)
  %20 = load double, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #4
  %21 = call noundef i32 @_ZN17siscone_spherical19CSphtheta_phi_range14get_theta_cellEd(ptr noundef nonnull align 4 dereferenceable(8) %0, double noundef %15)
  %22 = call noundef i32 @_ZN17siscone_spherical19CSphtheta_phi_range14get_theta_cellEd(ptr noundef nonnull align 4 dereferenceable(8) %0, double noundef %20)
  %factor = shl i32 %22, 1
  %23 = sub i32 %factor, %21
  store i32 %23, ptr %0, align 4, !tbaa !9
  %24 = fdiv double %3, 0x400921FB54442D18
  %25 = call double @asin(double noundef %24) #4
  %26 = load double, ptr @_ZN17siscone_spherical19CSphtheta_phi_range9theta_minE, align 8, !tbaa !5
  %27 = fadd double %25, %26
  %28 = fcmp ugt double %15, %27
  br i1 %28, label %29, label %.loopexit

29:                                               ; preds = %4
  %30 = load double, ptr @_ZN17siscone_spherical19CSphtheta_phi_range9theta_maxE, align 8, !tbaa !5
  %31 = fsub double %30, %25
  %32 = fcmp ult double %20, %31
  br i1 %32, label %33, label %.loopexit

33:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #4
  %34 = call double @sin(double noundef %15) #4
  %35 = fdiv double 1.000000e+00, %34
  store double %35, ptr %9, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #4
  %36 = call double @sin(double noundef %20) #4
  %37 = fdiv double 1.000000e+00, %36
  store double %37, ptr %10, align 8, !tbaa !5
  %38 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %9, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %39 = load double, ptr %38, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #4
  %40 = fsub double %2, %3
  %41 = fmul double %40, %39
  %42 = fcmp olt double %41, 0xC00921FB54442D18
  br i1 %42, label %.lr.ph, label %.preheader52

.preheader52:                                     ; preds = %.lr.ph, %33
  %.042.lcssa = phi double [ %41, %33 ], [ %44, %.lr.ph ]
  %43 = fcmp ogt double %.042.lcssa, 0x400921FB54442D18
  br i1 %43, label %.lr.ph55, label %.preheader51

.lr.ph:                                           ; preds = %33, %.lr.ph
  %.04253 = phi double [ %44, %.lr.ph ], [ %41, %33 ]
  %44 = fadd double %.04253, 0x401921FB54442D18
  %45 = fcmp olt double %44, 0xC00921FB54442D18
  br i1 %45, label %.lr.ph, label %.preheader52, !llvm.loop !12

.preheader51:                                     ; preds = %.lr.ph55, %.preheader52
  %.143.lcssa = phi double [ %.042.lcssa, %.preheader52 ], [ %46, %.lr.ph55 ]
  br i1 %42, label %.lr.ph58, label %.preheader

.lr.ph55:                                         ; preds = %.preheader52, %.lr.ph55
  %.14354 = phi double [ %46, %.lr.ph55 ], [ %.042.lcssa, %.preheader52 ]
  %46 = fadd double %.14354, 0xC01921FB54442D18
  %47 = fcmp ogt double %46, 0x400921FB54442D18
  br i1 %47, label %.lr.ph55, label %.preheader51, !llvm.loop !14

.preheader:                                       ; preds = %.lr.ph58, %.preheader51
  %.0.lcssa = phi double [ %41, %.preheader51 ], [ %49, %.lr.ph58 ]
  %48 = fcmp ogt double %.0.lcssa, 0x400921FB54442D18
  br i1 %48, label %.lr.ph61, label %.loopexit

.lr.ph58:                                         ; preds = %.preheader51, %.lr.ph58
  %.057 = phi double [ %49, %.lr.ph58 ], [ %41, %.preheader51 ]
  %49 = fadd double %.057, 0x401921FB54442D18
  %50 = fcmp olt double %49, 0xC00921FB54442D18
  br i1 %50, label %.lr.ph58, label %.preheader, !llvm.loop !15

.lr.ph61:                                         ; preds = %.preheader, %.lr.ph61
  %.160 = phi double [ %51, %.lr.ph61 ], [ %.0.lcssa, %.preheader ]
  %51 = fadd double %.160, 0xC01921FB54442D18
  %52 = fcmp ogt double %51, 0x400921FB54442D18
  br i1 %52, label %.lr.ph61, label %.loopexit, !llvm.loop !16

.loopexit:                                        ; preds = %.lr.ph61, %.preheader, %29, %4
  %.244 = phi double [ 0xC00921F61616CADF, %4 ], [ 0xC00921F61616CADF, %29 ], [ %.143.lcssa, %.preheader ], [ %.143.lcssa, %.lr.ph61 ]
  %.2 = phi double [ 0x400921F61616CADF, %4 ], [ 0x400921F61616CADF, %29 ], [ %.0.lcssa, %.preheader ], [ %51, %.lr.ph61 ]
  %53 = call noundef i32 @_ZN17siscone_spherical19CSphtheta_phi_range12get_phi_cellEd(ptr noundef nonnull align 4 dereferenceable(8) %0, double noundef %.244)
  %54 = call noundef i32 @_ZN17siscone_spherical19CSphtheta_phi_range12get_phi_cellEd(ptr noundef nonnull align 4 dereferenceable(8) %0, double noundef %.2)
  %55 = fcmp ogt double %.2, %.244
  br i1 %55, label %56, label %58

56:                                               ; preds = %.loopexit
  %factor50 = shl i32 %54, 1
  %57 = sub i32 %factor50, %53
  br label %63

58:                                               ; preds = %.loopexit
  %59 = icmp eq i32 %53, %54
  %60 = xor i32 %53, -1
  %reass.add = shl i32 %54, 1
  %61 = add i32 %reass.add, %60
  %62 = select i1 %59, i32 -1, i32 %61
  br label %63

63:                                               ; preds = %58, %56
  %.sink = phi i32 [ %57, %56 ], [ %62, %58 ]
  %64 = getelementptr inbounds i8, ptr %0, i64 4
  store i32 %.sink, ptr %64, align 4
  ret void
}

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_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: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #2

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

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

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

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

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #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 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTSN17siscone_spherical19CSphtheta_phi_rangeE", !11, i64 0, !11, i64 4}
!11 = !{!"int", !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}
!16 = distinct !{!16, !13}


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