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

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

%struct.timeval = type { i64, i64 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"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.siscone::Csiscone" = type <{ %"class.siscone::Cstable_cones", %"class.siscone::Csplit_merge.base", [7 x i8], %"class.std::vector.30", i8, [7 x i8] }>
%"class.siscone::Cstable_cones" = type { %"class.siscone::Cvicinity", %"class.std::vector", ptr, i32, double, double, %"class.siscone::Cmomentum", ptr, ptr, i32, i32, %"class.siscone::Cmomentum", %"class.std::vector.10", %"class.std::vector.15", double }
%"class.siscone::Cvicinity" = type { ptr, double, double, double, double, double, double, i32, %"class.std::vector", %"class.std::vector.0", ptr, %"class.std::vector.5", i32, double, double }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = 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.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<std::pair<siscone::Creference, siscone::Creference>, std::allocator<std::pair<siscone::Creference, siscone::Creference>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<siscone::Creference, siscone::Creference>, std::allocator<std::pair<siscone::Creference, siscone::Creference>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<siscone::Creference, siscone::Creference>, std::allocator<std::pair<siscone::Creference, siscone::Creference>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<siscone::Creference, siscone::Creference>, std::allocator<std::pair<siscone::Creference, siscone::Creference>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.siscone::Csplit_merge.base" = type <{ i32, [4 x i8], %"class.std::vector", %"class.std::vector.20", i32, [4 x i8], %"class.std::vector", %"class.std::vector", i32, [4 x i8], double, %"class.std::vector.25", ptr, i32, i8, [3 x i8], %"class.siscone::Csplit_merge_ptcomparison", double, double, %"class.std::auto_ptr", double, i8 }>
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<siscone::Cjet, std::allocator<siscone::Cjet>>::_Vector_impl" }
%"struct.std::_Vector_base<siscone::Cjet, std::allocator<siscone::Cjet>>::_Vector_impl" = type { %"struct.std::_Vector_base<siscone::Cjet, std::allocator<siscone::Cjet>>::_Vector_impl_data" }
%"struct.std::_Vector_base<siscone::Cjet, std::allocator<siscone::Cjet>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.siscone::Csplit_merge_ptcomparison" = type <{ ptr, ptr, i32, [4 x i8] }>
%"class.std::auto_ptr" = type { ptr }
%"class.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = type { %"struct.std::_Vector_base<std::vector<siscone::Cmomentum>, std::allocator<std::vector<siscone::Cmomentum>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<siscone::Cmomentum>, std::allocator<std::vector<siscone::Cmomentum>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<siscone::Cmomentum>, std::allocator<std::vector<siscone::Cmomentum>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<siscone::Cmomentum>, std::allocator<std::vector<siscone::Cmomentum>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@time_start = external dso_local global %struct.timeval, align 8
@time_end = external dso_local global %struct.timeval, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@stdout = external global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z10time_spentv() #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.std::vector", align 8
  %3 = alloca %"class.siscone::Csiscone", align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca double, align 8
  %7 = alloca double, align 8
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca %struct.timeval, align 8
  %15 = alloca %"class.siscone::Cmomentum", align 8
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.start.p0(i64 24, ptr %2) #7
  call void @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.start.p0(i64 712, ptr %3) #7
  invoke void @_ZN7siscone8CsisconeC1Ev(ptr noundef nonnull align 8 dereferenceable(705) %3)
          to label %16 unwind label %60

16:                                               ; preds = %0
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %17 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str)
          to label %18 unwind label %64

18:                                               ; preds = %16
  %19 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %17, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %20 unwind label %64

20:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 16, ptr %14) #7
  %21 = call i32 @gettimeofday(ptr noundef %14, ptr noundef null) #7
  %22 = getelementptr inbounds %struct.timeval, ptr %14, i32 0, i32 1
  %23 = load i64, ptr %22, align 8, !tbaa !5
  %24 = trunc i64 %23 to i32
  call void @srand(i32 noundef %24) #7
  %25 = invoke noalias ptr @fopen(ptr noundef @.str.1, ptr noundef @.str.2)
          to label %26 unwind label %68

26:                                               ; preds = %20
  store ptr %25, ptr %13, align 8, !tbaa !10
  store i32 1, ptr %9, align 4, !tbaa !12
  store i32 1, ptr %11, align 4, !tbaa !12
  br label %27

27:                                               ; preds = %110, %26
  %28 = load ptr, ptr @stdout, align 8, !tbaa !10
  %29 = load i32, ptr %9, align 4, !tbaa !12
  %30 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %28, ptr noundef @.str.3, i32 noundef %29) #7
  store i32 0, ptr %12, align 4, !tbaa !12
  store i32 0, ptr %10, align 4, !tbaa !12
  br label %31

31:                                               ; preds = %89, %27
  %32 = load i32, ptr %10, align 4, !tbaa !12
  %33 = icmp slt i32 %32, 32
  br i1 %33, label %34, label %92

34:                                               ; preds = %31
  call void @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  store i32 0, ptr %8, align 4, !tbaa !12
  br label %35

35:                                               ; preds = %57, %34
  %36 = load i32, ptr %8, align 4, !tbaa !12
  %37 = load i32, ptr %9, align 4, !tbaa !12
  %38 = icmp slt i32 %36, %37
  br i1 %38, label %39, label %81

39:                                               ; preds = %35
  %40 = call i32 @rand() #7
  %41 = sitofp i32 %40 to double
  %42 = fmul double 6.000000e+00, %41
  %43 = fdiv double %42, 0x41E0000000000000
  %44 = fadd double -3.000000e+00, %43
  store double %44, ptr %6, align 8, !tbaa !14
  %45 = call i32 @rand() #7
  %46 = sitofp i32 %45 to double
  %47 = fmul double 0x401921FB54442D18, %46
  %48 = fdiv double %47, 0x41E0000000000000
  store double %48, ptr %7, align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 72, ptr %15) #7
  %49 = load double, ptr %7, align 8, !tbaa !14
  %50 = call double @cos(double noundef %49) #7
  %51 = load double, ptr %7, align 8, !tbaa !14
  %52 = call double @sin(double noundef %51) #7
  %53 = load double, ptr %6, align 8, !tbaa !14
  %54 = call double @tanh(double noundef %53) #7
  invoke void @_ZN7siscone9CmomentumC1Edddd(ptr noundef nonnull align 8 dereferenceable(68) %15, double noundef %50, double noundef %52, double noundef %54, double noundef 1.000000e+00)
          to label %55 unwind label %72

55:                                               ; preds = %39
  invoke void @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(68) %15)
          to label %56 unwind label %76

56:                                               ; preds = %55
  call void @_ZN7siscone9CmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(68) %15) #7
  call void @llvm.lifetime.end.p0(i64 72, ptr %15) #7
  br label %57

57:                                               ; preds = %56
  %58 = load i32, ptr %8, align 4, !tbaa !12
  %59 = add nsw i32 %58, 1
  store i32 %59, ptr %8, align 4, !tbaa !12
  br label %35, !llvm.loop !16

60:                                               ; preds = %0
  %61 = landingpad { ptr, i32 }
          cleanup
  %62 = extractvalue { ptr, i32 } %61, 0
  store ptr %62, ptr %4, align 8
  %63 = extractvalue { ptr, i32 } %61, 1
  store i32 %63, ptr %5, align 4
  br label %126

64:                                               ; preds = %18, %16
  %65 = landingpad { ptr, i32 }
          cleanup
  %66 = extractvalue { ptr, i32 } %65, 0
  store ptr %66, ptr %4, align 8
  %67 = extractvalue { ptr, i32 } %65, 1
  store i32 %67, ptr %5, align 4
  br label %125

68:                                               ; preds = %120, %116, %113, %81, %20
  %69 = landingpad { ptr, i32 }
          cleanup
  %70 = extractvalue { ptr, i32 } %69, 0
  store ptr %70, ptr %4, align 8
  %71 = extractvalue { ptr, i32 } %69, 1
  store i32 %71, ptr %5, align 4
  br label %124

72:                                               ; preds = %39
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %4, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %5, align 4
  br label %80

76:                                               ; preds = %55
  %77 = landingpad { ptr, i32 }
          cleanup
  %78 = extractvalue { ptr, i32 } %77, 0
  store ptr %78, ptr %4, align 8
  %79 = extractvalue { ptr, i32 } %77, 1
  store i32 %79, ptr %5, align 4
  call void @_ZN7siscone9CmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(68) %15) #7
  br label %80

80:                                               ; preds = %76, %72
  call void @llvm.lifetime.end.p0(i64 72, ptr %15) #7
  br label %124

81:                                               ; preds = %35
  %82 = call i32 @gettimeofday(ptr noundef @time_start, ptr noundef null) #7
  %83 = invoke noundef i32 @_ZN7siscone8Csiscone12compute_jetsERSt6vectorINS_9CmomentumESaIS2_EEddidNS_18Esplit_merge_scaleE(ptr noundef nonnull align 8 dereferenceable(705) %3, ptr noundef nonnull align 8 dereferenceable(24) %2, double noundef 0x3FE6666666666666, double noundef 5.000000e-01, i32 noundef 0, double noundef 0.000000e+00, i32 noundef 3)
          to label %84 unwind label %68

84:                                               ; preds = %81
  %85 = call i32 @gettimeofday(ptr noundef @time_end, ptr noundef null) #7
  %86 = call noundef i32 @_Z10time_spentv()
  %87 = load i32, ptr %12, align 4, !tbaa !12
  %88 = add nsw i32 %87, %86
  store i32 %88, ptr %12, align 4, !tbaa !12
  br label %89

89:                                               ; preds = %84
  %90 = load i32, ptr %10, align 4, !tbaa !12
  %91 = add nsw i32 %90, 1
  store i32 %91, ptr %10, align 4, !tbaa !12
  br label %31, !llvm.loop !18

92:                                               ; preds = %31
  %93 = load ptr, ptr %13, align 8, !tbaa !10
  %94 = load i32, ptr %9, align 4, !tbaa !12
  %95 = load i32, ptr %12, align 4, !tbaa !12
  %96 = sitofp i32 %95 to double
  %97 = fdiv double %96, 3.200000e+01
  %98 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %93, ptr noundef @.str.4, i32 noundef %94, double noundef %97) #7
  %99 = load i32, ptr %11, align 4, !tbaa !12
  %100 = load i32, ptr %9, align 4, !tbaa !12
  %101 = add nsw i32 %100, %99
  store i32 %101, ptr %9, align 4, !tbaa !12
  %102 = load i32, ptr %9, align 4, !tbaa !12
  %103 = load i32, ptr %11, align 4, !tbaa !12
  %104 = shl i32 %103, 3
  %105 = icmp eq i32 %102, %104
  br i1 %105, label %106, label %109

106:                                              ; preds = %92
  %107 = load i32, ptr %11, align 4, !tbaa !12
  %108 = shl i32 %107, 1
  store i32 %108, ptr %11, align 4, !tbaa !12
  br label %109

109:                                              ; preds = %106, %92
  br label %110

110:                                              ; preds = %109
  %111 = load i32, ptr %9, align 4, !tbaa !12
  %112 = icmp sle i32 %111, 1024
  br i1 %112, label %27, label %113, !llvm.loop !19

113:                                              ; preds = %110
  %114 = load ptr, ptr %13, align 8, !tbaa !10
  %115 = invoke i32 @fclose(ptr noundef %114)
          to label %116 unwind label %68

116:                                              ; preds = %113
  %117 = load ptr, ptr @stdout, align 8, !tbaa !10
  %118 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %117, ptr noundef @.str.5) #7
  %119 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.6)
          to label %120 unwind label %68

120:                                              ; preds = %116
  %121 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %119, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %122 unwind label %68

122:                                              ; preds = %120
  store i32 0, ptr %1, align 4
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @_ZN7siscone8CsisconeD1Ev(ptr noundef nonnull align 8 dereferenceable(705) %3) #7
  call void @llvm.lifetime.end.p0(i64 712, ptr %3) #7
  call void @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #7
  %123 = load i32, ptr %1, align 4
  ret i32 %123

124:                                              ; preds = %80, %68
  call void @llvm.lifetime.end.p0(i64 16, ptr %14) #7
  br label %125

125:                                              ; preds = %124, %64
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @_ZN7siscone8CsisconeD1Ev(ptr noundef nonnull align 8 dereferenceable(705) %3) #7
  br label %126

126:                                              ; preds = %125, %60
  call void @llvm.lifetime.end.p0(i64 712, ptr %3) #7
  call void @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %2) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %2) #7
  br label %127

127:                                              ; preds = %126
  %128 = load ptr, ptr %4, align 8
  %129 = load i32, ptr %5, align 4
  %130 = insertvalue { ptr, i32 } poison, ptr %128, 0
  %131 = insertvalue { ptr, i32 } %130, i32 %129, 1
  resume { ptr, i32 } %131
}

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

declare void @_ZN7siscone8CsisconeC1Ev(ptr noundef nonnull align 8 dereferenceable(705)) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: nounwind
declare i32 @gettimeofday(ptr noundef, ptr noundef) #6

; Function Attrs: nounwind
declare void @srand(i32 noundef) #6

declare noalias ptr @fopen(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #6

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

; Function Attrs: nounwind
declare i32 @rand() #6

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

; Function Attrs: nounwind
declare double @cos(double noundef) #6

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

; Function Attrs: nounwind
declare double @tanh(double noundef) #6

declare void @_ZN7siscone9CmomentumC1Edddd(ptr noundef nonnull align 8 dereferenceable(68), double noundef, double noundef, double noundef, double noundef) unnamed_addr #3

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

declare noundef i32 @_ZN7siscone8Csiscone12compute_jetsERSt6vectorINS_9CmomentumESaIS2_EEddidNS_18Esplit_merge_scaleE(ptr noundef nonnull align 8 dereferenceable(705), ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, i32 noundef, double noundef, i32 noundef) #3

declare i32 @fclose(ptr noundef) #3

; Function Attrs: nounwind
declare void @_ZN7siscone8CsisconeD1Ev(ptr noundef nonnull align 8 dereferenceable(705)) unnamed_addr #6

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind "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 }

!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 8}
!6 = !{!"_ZTS7timeval", !7, i64 0, !7, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"int", !8, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !8, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}


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

%struct.timeval = type { i64, i64 }
%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.std::locale" = type { ptr }
%"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.siscone::Csiscone" = type <{ %"class.siscone::Cstable_cones", %"class.siscone::Csplit_merge.base", [7 x i8], %"class.std::vector.30", i8, [7 x i8] }>
%"class.siscone::Cstable_cones" = type { %"class.siscone::Cvicinity", %"class.std::vector", ptr, i32, double, double, %"class.siscone::Cmomentum", ptr, ptr, i32, i32, %"class.siscone::Cmomentum", %"class.std::vector.10", %"class.std::vector.15", double }
%"class.siscone::Cvicinity" = type { ptr, double, double, double, double, double, double, i32, %"class.std::vector", %"class.std::vector.0", ptr, %"class.std::vector.5", i32, double, double }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = 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.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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.std::vector.10" = type { %"struct.std::_Vector_base.11" }
%"struct.std::_Vector_base.11" = 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.15" = type { %"struct.std::_Vector_base.16" }
%"struct.std::_Vector_base.16" = type { %"struct.std::_Vector_base<std::pair<siscone::Creference, siscone::Creference>, std::allocator<std::pair<siscone::Creference, siscone::Creference>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::pair<siscone::Creference, siscone::Creference>, std::allocator<std::pair<siscone::Creference, siscone::Creference>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::pair<siscone::Creference, siscone::Creference>, std::allocator<std::pair<siscone::Creference, siscone::Creference>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::pair<siscone::Creference, siscone::Creference>, std::allocator<std::pair<siscone::Creference, siscone::Creference>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.siscone::Csplit_merge.base" = type <{ i32, [4 x i8], %"class.std::vector", %"class.std::vector.20", i32, [4 x i8], %"class.std::vector", %"class.std::vector", i32, [4 x i8], double, %"class.std::vector.25", ptr, i32, i8, [3 x i8], %"class.siscone::Csplit_merge_ptcomparison", double, double, %"class.std::auto_ptr", double, i8 }>
%"class.std::vector.20" = type { %"struct.std::_Vector_base.21" }
%"struct.std::_Vector_base.21" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl" = type { %"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" }
%"struct.std::_Vector_base<double, std::allocator<double>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.std::vector.25" = type { %"struct.std::_Vector_base.26" }
%"struct.std::_Vector_base.26" = type { %"struct.std::_Vector_base<siscone::Cjet, std::allocator<siscone::Cjet>>::_Vector_impl" }
%"struct.std::_Vector_base<siscone::Cjet, std::allocator<siscone::Cjet>>::_Vector_impl" = type { %"struct.std::_Vector_base<siscone::Cjet, std::allocator<siscone::Cjet>>::_Vector_impl_data" }
%"struct.std::_Vector_base<siscone::Cjet, std::allocator<siscone::Cjet>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.siscone::Csplit_merge_ptcomparison" = type <{ ptr, ptr, i32, [4 x i8] }>
%"class.std::auto_ptr" = type { ptr }
%"class.std::vector.30" = type { %"struct.std::_Vector_base.31" }
%"struct.std::_Vector_base.31" = type { %"struct.std::_Vector_base<std::vector<siscone::Cmomentum>, std::allocator<std::vector<siscone::Cmomentum>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<siscone::Cmomentum>, std::allocator<std::vector<siscone::Cmomentum>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<siscone::Cmomentum>, std::allocator<std::vector<siscone::Cmomentum>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<siscone::Cmomentum>, std::allocator<std::vector<siscone::Cmomentum>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

@time_start = external dso_local global %struct.timeval, align 8
@time_end = external dso_local global %struct.timeval, align 8
@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str = external hidden unnamed_addr constant [35 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [3 x i8], align 1
@stdout = external local_unnamed_addr global ptr, align 8
@.str.3 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.4 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [7 x i8], align 1

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i32 @_Z10time_spentv() local_unnamed_addr #0

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

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

; Function Attrs: mustprogress norecurse uwtable
define dso_local noundef i32 @main() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.std::vector", align 8
  %2 = alloca %"class.siscone::Csiscone", align 8
  %3 = alloca %struct.timeval, align 8
  %4 = alloca %"class.siscone::Cmomentum", align 8
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %1) #9
  call void @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EEC2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #9
  call void @llvm.lifetime.start.p0(i64 712, ptr nonnull %2) #9
  invoke void @_ZN7siscone8CsisconeC1Ev(ptr noundef nonnull align 8 dereferenceable(705) %2)
          to label %5 unwind label %46

5:                                                ; preds = %0
  %6 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str)
          to label %7 unwind label %48

7:                                                ; preds = %5
  %8 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %6, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %9 unwind label %48

9:                                                ; preds = %7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #9
  %10 = call i32 @gettimeofday(ptr noundef nonnull %3, ptr noundef null) #9
  %11 = getelementptr inbounds i8, ptr %3, i64 8
  %12 = load i64, ptr %11, align 8, !tbaa !5
  %13 = trunc i64 %12 to i32
  call void @srand(i32 noundef %13) #9
  %14 = call noalias ptr @fopen(ptr noundef nonnull @.str.1, ptr noundef nonnull @.str.2)
  br label %15

15:                                               ; preds = %.split44.us, %9
  %.024 = phi i32 [ 1, %9 ], [ %59, %.split44.us ]
  %.022 = phi i32 [ 1, %9 ], [ %spec.select, %.split44.us ]
  %16 = load ptr, ptr @stdout, align 8, !tbaa !10
  %17 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %16, ptr noundef nonnull @.str.3, i32 noundef %.024) #9
  %18 = icmp sgt i32 %.024, 0
  br i1 %18, label %.lr.ph.us, label %.split

.lr.ph.us:                                        ; preds = %15, %19
  %.042.us = phi i32 [ %22, %19 ], [ 0, %15 ]
  %.02341.us = phi i32 [ %23, %19 ], [ 0, %15 ]
  call void @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #9
  br label %24

19:                                               ; preds = %._crit_edge.us
  %20 = call i32 @gettimeofday(ptr noundef nonnull @time_end, ptr noundef null) #9
  %21 = call noundef i32 @_Z10time_spentv()
  %22 = add nsw i32 %21, %.042.us
  %23 = add nuw nsw i32 %.02341.us, 1
  %exitcond55.not = icmp eq i32 %23, 32
  br i1 %exitcond55.not, label %.split44.us, label %.lr.ph.us, !llvm.loop !12

24:                                               ; preds = %.lr.ph.us, %38
  %.02540.us = phi i32 [ 0, %.lr.ph.us ], [ %39, %38 ]
  %25 = call i32 @rand() #9
  %26 = sitofp i32 %25 to double
  %27 = fmul double %26, 6.000000e+00
  %28 = fmul double %27, 0x3E00000000000000
  %29 = fadd double %28, -3.000000e+00
  %30 = call i32 @rand() #9
  %31 = sitofp i32 %30 to double
  %32 = fmul double %31, 0x401921FB54442D18
  %33 = fmul double %32, 0x3E00000000000000
  call void @llvm.lifetime.start.p0(i64 72, ptr nonnull %4) #9
  %34 = call double @cos(double noundef %33) #9
  %35 = call double @sin(double noundef %33) #9
  %36 = call double @tanh(double noundef %29) #9
  invoke void @_ZN7siscone9CmomentumC1Edddd(ptr noundef nonnull align 8 dereferenceable(68) %4, double noundef %34, double noundef %35, double noundef %36, double noundef 1.000000e+00)
          to label %37 unwind label %.split47.us

37:                                               ; preds = %24
  invoke void @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EE9push_backEOS1_(ptr noundef nonnull align 8 dereferenceable(24) %1, ptr noundef nonnull align 8 dereferenceable(68) %4)
          to label %38 unwind label %.split50.us

38:                                               ; preds = %37
  call void @_ZN7siscone9CmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(68) %4) #9
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #9
  %39 = add nuw nsw i32 %.02540.us, 1
  %exitcond54.not = icmp eq i32 %39, %.024
  br i1 %exitcond54.not, label %._crit_edge.us, label %24, !llvm.loop !14

._crit_edge.us:                                   ; preds = %38
  %40 = call i32 @gettimeofday(ptr noundef nonnull @time_start, ptr noundef null) #9
  %41 = invoke noundef i32 @_ZN7siscone8Csiscone12compute_jetsERSt6vectorINS_9CmomentumESaIS2_EEddidNS_18Esplit_merge_scaleE(ptr noundef nonnull align 8 dereferenceable(705) %2, ptr noundef nonnull align 8 dereferenceable(24) %1, double noundef 0x3FE6666666666666, double noundef 5.000000e-01, i32 noundef 0, double noundef 0.000000e+00, i32 noundef 3)
          to label %19 unwind label %.loopexit.split.us

.loopexit.split.us:                               ; preds = %._crit_edge.us
  %lpad.loopexit.us = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.split47.us:                                      ; preds = %24
  %42 = landingpad { ptr, i32 }
          cleanup
  br label %50

.split50.us:                                      ; preds = %37
  %43 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7siscone9CmomentumD1Ev(ptr noundef nonnull align 8 dereferenceable(68) %4) #9
  br label %50

.split:                                           ; preds = %15, %51
  %.042 = phi i32 [ %54, %51 ], [ 0, %15 ]
  %.02341 = phi i32 [ %55, %51 ], [ 0, %15 ]
  call void @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EE5clearEv(ptr noundef nonnull align 8 dereferenceable(24) %1) #9
  %44 = call i32 @gettimeofday(ptr noundef nonnull @time_start, ptr noundef null) #9
  %45 = invoke noundef i32 @_ZN7siscone8Csiscone12compute_jetsERSt6vectorINS_9CmomentumESaIS2_EEddidNS_18Esplit_merge_scaleE(ptr noundef nonnull align 8 dereferenceable(705) %2, ptr noundef nonnull align 8 dereferenceable(24) %1, double noundef 0x3FE6666666666666, double noundef 5.000000e-01, i32 noundef 0, double noundef 0.000000e+00, i32 noundef 3)
          to label %51 unwind label %.loopexit.split

46:                                               ; preds = %0
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %73

48:                                               ; preds = %7, %5
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %72

.loopexit.split:                                  ; preds = %.split
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

.loopexit.split-lp:                               ; preds = %64, %69
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %.loopexit

50:                                               ; preds = %.split50.us, %.split47.us
  %.pn = phi { ptr, i32 } [ %43, %.split50.us ], [ %42, %.split47.us ]
  call void @llvm.lifetime.end.p0(i64 72, ptr nonnull %4) #9
  br label %.loopexit

51:                                               ; preds = %.split
  %52 = call i32 @gettimeofday(ptr noundef nonnull @time_end, ptr noundef null) #9
  %53 = call noundef i32 @_Z10time_spentv()
  %54 = add nsw i32 %53, %.042
  %55 = add nuw nsw i32 %.02341, 1
  %exitcond.not = icmp eq i32 %55, 32
  br i1 %exitcond.not, label %.split44.us, label %.split, !llvm.loop !12

.split44.us:                                      ; preds = %51, %19
  %.us-phi45 = phi i32 [ %22, %19 ], [ %54, %51 ]
  %56 = sitofp i32 %.us-phi45 to double
  %57 = fmul double %56, 3.125000e-02
  %58 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %14, ptr noundef nonnull @.str.4, i32 noundef %.024, double noundef %57) #9
  %59 = add nsw i32 %.022, %.024
  %60 = shl i32 %.022, 3
  %61 = icmp eq i32 %59, %60
  %62 = zext i1 %61 to i32
  %spec.select = shl i32 %.022, %62
  %63 = icmp slt i32 %59, 1025
  br i1 %63, label %15, label %64, !llvm.loop !15

64:                                               ; preds = %.split44.us
  %65 = call i32 @fclose(ptr noundef %14)
  %66 = load ptr, ptr @stdout, align 8, !tbaa !10
  %67 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %66, ptr noundef nonnull @.str.5) #9
  %68 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.6)
          to label %69 unwind label %.loopexit.split-lp

69:                                               ; preds = %64
  %70 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %68, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %71 unwind label %.loopexit.split-lp

71:                                               ; preds = %69
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  call void @_ZN7siscone8CsisconeD1Ev(ptr noundef nonnull align 8 dereferenceable(705) %2) #9
  call void @llvm.lifetime.end.p0(i64 712, ptr nonnull %2) #9
  call void @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #9
  ret i32 0

.loopexit:                                        ; preds = %.loopexit.split-lp, %.loopexit.split.us, %.loopexit.split, %50
  %.pn.pn = phi { ptr, i32 } [ %.pn, %50 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %lpad.loopexit, %.loopexit.split ], [ %lpad.loopexit.us, %.loopexit.split.us ]
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #9
  br label %72

72:                                               ; preds = %.loopexit, %48
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %.loopexit ], [ %49, %48 ]
  call void @_ZN7siscone8CsisconeD1Ev(ptr noundef nonnull align 8 dereferenceable(705) %2) #9
  br label %73

73:                                               ; preds = %72, %46
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %72 ], [ %47, %46 ]
  call void @llvm.lifetime.end.p0(i64 712, ptr nonnull %2) #9
  call void @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %1) #9
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %1) #9
  resume { ptr, i32 } %.pn.pn.pn.pn
}

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

declare void @_ZN7siscone8CsisconeC1Ev(ptr noundef nonnull align 8 dereferenceable(705)) unnamed_addr #3

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #4

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #5 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #4

; Function Attrs: nofree nounwind
declare noundef i32 @gettimeofday(ptr nocapture noundef, ptr nocapture noundef) local_unnamed_addr #6

; Function Attrs: nounwind
declare void @srand(i32 noundef) local_unnamed_addr #7

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #6

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #6

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

; Function Attrs: nounwind
declare i32 @rand() local_unnamed_addr #7

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

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

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

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

declare void @_ZN7siscone9CmomentumC1Edddd(ptr noundef nonnull align 8 dereferenceable(68), double noundef, double noundef, double noundef, double noundef) unnamed_addr #3

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

declare noundef i32 @_ZN7siscone8Csiscone12compute_jetsERSt6vectorINS_9CmomentumESaIS2_EEddidNS_18Esplit_merge_scaleE(ptr noundef nonnull align 8 dereferenceable(705), ptr noundef nonnull align 8 dereferenceable(24), double noundef, double noundef, i32 noundef, double noundef, i32 noundef) local_unnamed_addr #3

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #6

; Function Attrs: nounwind
declare void @_ZN7siscone8CsisconeD1Ev(ptr noundef nonnull align 8 dereferenceable(705)) unnamed_addr #7

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNSt6vectorIN7siscone9CmomentumESaIS1_EED2Ev(ptr noundef nonnull align 8 dereferenceable(24)) unnamed_addr #0 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 = { mustprogress norecurse uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nofree 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 #7 = { 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 #8 = { 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 #9 = { 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 8}
!6 = !{!"_ZTS7timeval", !7, i64 0, !7, i64 8}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"any pointer", !8, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}
!14 = distinct !{!14, !13}
!15 = distinct !{!15, !13}


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