; LLVM IR from cruppstahl/upscaledb :: tools/ups_bench/generator_runtime.ll (ZN16RuntimeGenerator13limit_reachedEv)

; 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.Generator = type <{ ptr, i32, [4 x i8], ptr, ptr, i32, [4 x i8], %struct.ups_record_t, ptr, [4 x i32], i8, [7 x i8] }>
%struct.ups_record_t = type { i32, ptr, i32 }
%struct.Configuration = type <{ i8, [3 x i8], i32, i8, i8, i8, [5 x i8], %"class.std::__cxx11::basic_string", i8, [3 x i8], i32, i32, i32, i8, [3 x i8], i32, i64, i64, i64, i64, i32, i8, [3 x i8], i32, i32, i32, i32, i8, i8, [2 x i8], i32, i8, [3 x i8], i32, i8, i8, i8, i8, i8, [3 x i8], i32, i32, i32, i8, i8, i8, i8, i32, i32, %"class.std::__cxx11::basic_string", i32, i32, i32, i8, i8, [2 x i8], i32, i32, i32, i8, i8, i8, i8, i32, i8, i8, [2 x i8] }>
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%class.RuntimeGenerator = type <{ %class.Generator.base, [3 x i8], i32, i64, ptr, %"class.std::vector", %"class.std::vector", %"class.boost::random::mersenne_twister_engine", %"class.boost::random::uniform_01", %struct.Timer, double, ptr, ptr, ptr, %"class.std::basic_ofstream", i8, [7 x i8], %struct.Metrics, i8, [7 x i8] }>
%class.Generator.base = type <{ ptr, i32, [4 x i8], ptr, ptr, i32, [4 x i8], %struct.ups_record_t, ptr, [4 x i32], i8 }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl" = type { %"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" }
%"struct.std::_Vector_base<unsigned char, std::allocator<unsigned char>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.boost::random::mersenne_twister_engine" = type { [624 x i32], i64 }
%"class.boost::random::uniform_01" = type { %"class.boost::random::detail::backward_compatible_uniform_01" }
%"class.boost::random::detail::backward_compatible_uniform_01" = type { %"class.boost::random::mersenne_twister_engine", double }
%struct.Timer = type { %"class.boost::chrono::time_point" }
%"class.boost::chrono::time_point" = type { %"class.boost::chrono::duration" }
%"class.boost::chrono::duration" = type { i64 }
%"class.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.4 }
%union.anon.4 = type { i32 }
%"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 }
%struct.Metrics = type { ptr, i64, i64, i64, i64, i64, i64, i64, double, double, double, double, double, double, double, double, double, double, double, double, double, %struct.ups_env_metrics_t }
%struct.ups_env_metrics_t = type { i16, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, %struct.btree_metrics_t, %struct.btree_metrics_t, i32 }
%struct.btree_metrics_t = type { i16, i64, i64, i64, i32, %struct.min_max_avg_u32_t, %struct.min_max_avg_u32_t, %struct.min_max_avg_u32_t, %struct.min_max_avg_u32_t, %struct.min_max_avg_u32_t, %struct.min_max_avg_u32_t, %struct.min_max_avg_u32_t, %struct.min_max_avg_u32_t, %struct.min_max_avg_u32_t }
%struct.min_max_avg_u32_t = type { i32, i32, i32, i32, i32 }

; 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: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN5boost16progress_displaypLEm(ptr noundef nonnull align 8 dereferenceable(132), i64 noundef) #2 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK5TimerIN5boost6chrono12system_clockEE7secondsEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN16RuntimeGenerator13limit_reachedEv(ptr noundef nonnull align 8 dereferenceable(6569) %0) #2 align 2 {
  %2 = alloca i1, align 1
  %3 = alloca ptr, align 8
  %4 = alloca double, align 8
  %5 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  %6 = load ptr, ptr %3, align 8
  %7 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %8 = load ptr, ptr %7, align 8, !tbaa !9
  %9 = getelementptr inbounds %struct.Configuration, ptr %8, i32 0, i32 17
  %10 = load i64, ptr %9, align 8, !tbaa !14
  %11 = icmp ne i64 %10, 0
  br i1 %11, label %12, label %22

12:                                               ; preds = %1
  %13 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 3
  %14 = load i64, ptr %13, align 8, !tbaa !19
  %15 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %16 = load ptr, ptr %15, align 8, !tbaa !9
  %17 = getelementptr inbounds %struct.Configuration, ptr %16, i32 0, i32 17
  %18 = load i64, ptr %17, align 8, !tbaa !14
  %19 = icmp uge i64 %14, %18
  br i1 %19, label %20, label %21

20:                                               ; preds = %12
  store i1 true, ptr %2, align 1
  br label %119

21:                                               ; preds = %12
  br label %22

22:                                               ; preds = %21, %1
  %23 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %24 = load ptr, ptr %23, align 8, !tbaa !9
  %25 = getelementptr inbounds %struct.Configuration, ptr %24, i32 0, i32 18
  %26 = load i64, ptr %25, align 8, !tbaa !45
  %27 = icmp ne i64 %26, 0
  br i1 %27, label %32, label %28

28:                                               ; preds = %22
  %29 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 8
  %30 = load ptr, ptr %29, align 8, !tbaa !46
  %31 = icmp ne ptr %30, null
  br i1 %31, label %32, label %101

32:                                               ; preds = %28, %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #3
  %33 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 9
  %34 = call noundef double @_ZNK5TimerIN5boost6chrono12system_clockEE7secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %33)
  store double %34, ptr %4, align 8, !tbaa !47
  %35 = load double, ptr %4, align 8, !tbaa !47
  %36 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 10
  %37 = load double, ptr %36, align 8, !tbaa !48
  %38 = fsub double %35, %37
  %39 = fcmp oge double %38, 1.000000e+00
  br i1 %39, label %40, label %80

40:                                               ; preds = %32
  %41 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 13
  %42 = load ptr, ptr %41, align 8, !tbaa !49
  %43 = icmp ne ptr %42, null
  br i1 %43, label %44, label %54

44:                                               ; preds = %40
  %45 = load double, ptr %4, align 8, !tbaa !47
  %46 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 10
  %47 = load double, ptr %46, align 8, !tbaa !48
  %48 = fsub double %45, %47
  %49 = fptoui double %48 to i32
  %50 = zext i32 %49 to i64
  %51 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 13
  %52 = load ptr, ptr %51, align 8, !tbaa !49
  %53 = call noundef i64 @_ZN5boost16progress_displaypLEm(ptr noundef nonnull align 8 dereferenceable(132) %52, i64 noundef %50)
  br label %54

54:                                               ; preds = %44, %40
  %55 = load double, ptr %4, align 8, !tbaa !47
  %56 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 10
  store double %55, ptr %56, align 8, !tbaa !48
  %57 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 8
  %58 = load ptr, ptr %57, align 8, !tbaa !46
  %59 = icmp ne ptr %58, null
  br i1 %59, label %60, label %78

60:                                               ; preds = %54
  %61 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 8
  %62 = load ptr, ptr %61, align 8, !tbaa !46
  %63 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 10
  %64 = load double, ptr %63, align 8, !tbaa !48
  %65 = fptoui double %64 to i64
  %66 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 9
  %67 = getelementptr inbounds [4 x i32], ptr %66, i64 0, i64 0
  %68 = load i32, ptr %67, align 8, !tbaa !50
  %69 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 9
  %70 = getelementptr inbounds [4 x i32], ptr %69, i64 0, i64 1
  %71 = load i32, ptr %70, align 4, !tbaa !50
  %72 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 9
  %73 = getelementptr inbounds [4 x i32], ptr %72, i64 0, i64 2
  %74 = load i32, ptr %73, align 8, !tbaa !50
  %75 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 9
  %76 = getelementptr inbounds [4 x i32], ptr %75, i64 0, i64 3
  %77 = load i32, ptr %76, align 4, !tbaa !50
  call void @_ZN5Graph19add_opspersec_graphEmjjjj(ptr noundef nonnull align 8 dereferenceable(52) %62, i64 noundef %65, i32 noundef %68, i32 noundef %71, i32 noundef %74, i32 noundef %77)
  br label %78

78:                                               ; preds = %60, %54
  %79 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 9
  call void @llvm.memset.p0.i64(ptr align 8 %79, i8 0, i64 16, i1 false)
  br label %80

80:                                               ; preds = %78, %32
  %81 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %82 = load ptr, ptr %81, align 8, !tbaa !9
  %83 = getelementptr inbounds %struct.Configuration, ptr %82, i32 0, i32 18
  %84 = load i64, ptr %83, align 8, !tbaa !45
  %85 = icmp ne i64 %84, 0
  br i1 %85, label %86, label %97

86:                                               ; preds = %80
  %87 = load double, ptr %4, align 8, !tbaa !47
  %88 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %89 = load ptr, ptr %88, align 8, !tbaa !9
  %90 = getelementptr inbounds %struct.Configuration, ptr %89, i32 0, i32 18
  %91 = load i64, ptr %90, align 8, !tbaa !45
  %92 = uitofp i64 %91 to double
  %93 = fcmp ogt double %87, %92
  br i1 %93, label %94, label %97

94:                                               ; preds = %86
  %95 = load double, ptr %4, align 8, !tbaa !47
  %96 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 10
  store double %95, ptr %96, align 8, !tbaa !48
  store i1 true, ptr %2, align 1
  store i32 1, ptr %5, align 4
  br label %98

97:                                               ; preds = %86, %80
  store i32 0, ptr %5, align 4
  br label %98

98:                                               ; preds = %97, %94
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #3
  %99 = load i32, ptr %5, align 4
  switch i32 %99, label %121 [
    i32 0, label %100
    i32 1, label %119
  ]

100:                                              ; preds = %98
  br label %101

101:                                              ; preds = %100, %28
  %102 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %103 = load ptr, ptr %102, align 8, !tbaa !9
  %104 = getelementptr inbounds %struct.Configuration, ptr %103, i32 0, i32 19
  %105 = load i64, ptr %104, align 8, !tbaa !51
  %106 = icmp ne i64 %105, 0
  br i1 %106, label %107, label %118

107:                                              ; preds = %101
  %108 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 17
  %109 = getelementptr inbounds %struct.Metrics, ptr %108, i32 0, i32 6
  %110 = load i64, ptr %109, align 8, !tbaa !52
  %111 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %112 = load ptr, ptr %111, align 8, !tbaa !9
  %113 = getelementptr inbounds %struct.Configuration, ptr %112, i32 0, i32 19
  %114 = load i64, ptr %113, align 8, !tbaa !51
  %115 = icmp uge i64 %110, %114
  br i1 %115, label %116, label %117

116:                                              ; preds = %107
  store i1 true, ptr %2, align 1
  br label %119

117:                                              ; preds = %107
  br label %118

118:                                              ; preds = %117, %101
  store i1 false, ptr %2, align 1
  br label %119

119:                                              ; preds = %118, %116, %98, %20
  %120 = load i1, ptr %2, align 1
  ret i1 %120

121:                                              ; preds = %98
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Graph19add_opspersec_graphEmjjjj(ptr noundef nonnull align 8 dereferenceable(52), i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) #2 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 16}
!10 = !{!"_ZTS9Generator", !11, i64 8, !6, i64 16, !6, i64 24, !11, i64 32, !12, i64 40, !6, i64 64, !7, i64 72, !13, i64 88}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS12ups_record_t", !11, i64 0, !6, i64 8, !11, i64 16}
!13 = !{!"bool", !7, i64 0}
!14 = !{!15, !18, i64 80}
!15 = !{!"_ZTS13Configuration", !13, i64 0, !11, i64 4, !13, i64 8, !13, i64 9, !13, i64 10, !16, i64 16, !13, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !13, i64 64, !11, i64 68, !18, i64 72, !18, i64 80, !18, i64 88, !18, i64 96, !11, i64 104, !13, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !13, i64 128, !13, i64 129, !11, i64 132, !13, i64 136, !11, i64 140, !13, i64 144, !13, i64 145, !13, i64 146, !13, i64 147, !13, i64 148, !11, i64 152, !11, i64 156, !11, i64 160, !13, i64 164, !13, i64 165, !13, i64 166, !11, i64 168, !11, i64 172, !16, i64 176, !11, i64 208, !11, i64 212, !11, i64 216, !13, i64 220, !13, i64 221, !11, i64 224, !11, i64 228, !11, i64 232, !13, i64 236, !13, i64 237, !13, i64 238, !13, i64 239, !11, i64 240, !13, i64 244, !13, i64 245}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !17, i64 0, !18, i64 8, !7, i64 16}
!17 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!18 = !{!"long", !7, i64 0}
!19 = !{!20, !18, i64 96}
!20 = !{!"_ZTS16RuntimeGenerator", !10, i64 0, !11, i64 92, !18, i64 96, !6, i64 104, !21, i64 112, !21, i64 136, !25, i64 160, !26, i64 2664, !29, i64 5176, !28, i64 5184, !6, i64 5192, !6, i64 5200, !6, i64 5208, !32, i64 5216, !13, i64 5728, !40, i64 5736, !13, i64 6568}
!21 = !{!"_ZTSSt6vectorIhSaIhEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"_ZTSN5boost6random23mersenne_twister_engineIjLm32ELm624ELm397ELm31ELj2567483615ELm11ELj4294967295ELm7ELj2636928640ELm15ELj4022730752ELm18ELj1812433253EEE", !7, i64 0, !18, i64 2496}
!26 = !{!"_ZTSN5boost6random10uniform_01INS0_23mersenne_twister_engineIjLm32ELm624ELm397ELm31ELj2567483615ELm11ELj4294967295ELm7ELj2636928640ELm15ELj4022730752ELm18ELj1812433253EEEdEE", !27, i64 0}
!27 = !{!"_ZTSN5boost6random6detail30backward_compatible_uniform_01INS0_23mersenne_twister_engineIjLm32ELm624ELm397ELm31ELj2567483615ELm11ELj4294967295ELm7ELj2636928640ELm15ELj4022730752ELm18ELj1812433253EEEdEE", !25, i64 0, !28, i64 2504}
!28 = !{!"double", !7, i64 0}
!29 = !{!"_ZTS5TimerIN5boost6chrono12system_clockEE", !30, i64 0}
!30 = !{!"_ZTSN5boost6chrono10time_pointINS0_12system_clockENS0_8durationIlNS_5ratioILl1ELl1000000000EEEEEEE", !31, i64 0}
!31 = !{!"_ZTSN5boost6chrono8durationIlNS_5ratioILl1ELl1000000000EEEEE", !18, i64 0}
!32 = !{!"_ZTSSt14basic_ofstreamIcSt11char_traitsIcEE", !33, i64 0, !34, i64 8}
!33 = !{!"_ZTSSo"}
!34 = !{!"_ZTSSt13basic_filebufIcSt11char_traitsIcEE", !35, i64 0, !7, i64 64, !37, i64 104, !38, i64 120, !39, i64 124, !39, i64 132, !39, i64 140, !6, i64 152, !18, i64 160, !13, i64 168, !13, i64 169, !13, i64 170, !7, i64 171, !6, i64 176, !6, i64 184, !13, i64 192, !6, i64 200, !6, i64 208, !18, i64 216, !6, i64 224, !6, i64 232}
!35 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !36, i64 56}
!36 = !{!"_ZTSSt6locale", !6, i64 0}
!37 = !{!"_ZTSSt12__basic_fileIcE", !6, i64 0, !13, i64 8}
!38 = !{!"_ZTSSt13_Ios_Openmode", !7, i64 0}
!39 = !{!"_ZTS11__mbstate_t", !11, i64 0, !7, i64 4}
!40 = !{!"_ZTS7Metrics", !6, i64 0, !18, i64 8, !18, i64 16, !18, i64 24, !18, i64 32, !18, i64 40, !18, i64 48, !18, i64 56, !28, i64 64, !28, i64 72, !28, i64 80, !28, i64 88, !28, i64 96, !28, i64 104, !28, i64 112, !28, i64 120, !28, i64 128, !28, i64 136, !28, i64 144, !28, i64 152, !28, i64 160, !41, i64 168}
!41 = !{!"_ZTS17ups_env_metrics_t", !42, i64 0, !18, i64 8, !18, i64 16, !18, i64 24, !18, i64 32, !18, i64 40, !18, i64 48, !18, i64 56, !18, i64 64, !18, i64 72, !18, i64 80, !18, i64 88, !18, i64 96, !18, i64 104, !18, i64 112, !18, i64 120, !18, i64 128, !18, i64 136, !18, i64 144, !18, i64 152, !18, i64 160, !18, i64 168, !18, i64 176, !18, i64 184, !18, i64 192, !18, i64 200, !18, i64 208, !18, i64 216, !43, i64 224, !43, i64 440, !11, i64 656}
!42 = !{!"short", !7, i64 0}
!43 = !{!"_ZTS15btree_metrics_t", !42, i64 0, !18, i64 8, !18, i64 16, !18, i64 24, !11, i64 32, !44, i64 36, !44, i64 56, !44, i64 76, !44, i64 96, !44, i64 116, !44, i64 136, !44, i64 156, !44, i64 176, !44, i64 196}
!44 = !{!"_ZTS17min_max_avg_u32_t", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16}
!45 = !{!15, !18, i64 88}
!46 = !{!10, !6, i64 64}
!47 = !{!28, !28, i64 0}
!48 = !{!20, !28, i64 5184}
!49 = !{!20, !6, i64 5208}
!50 = !{!11, !11, i64 0}
!51 = !{!15, !18, i64 96}
!52 = !{!20, !18, i64 5784}


; 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: mustprogress nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #0

; Function Attrs: mustprogress uwtable
declare dso_local noundef i64 @_ZN5boost16progress_displaypLEm(ptr noundef nonnull align 8 dereferenceable(132), i64 noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK5TimerIN5boost6chrono12system_clockEE7secondsEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef zeroext i1 @_ZN16RuntimeGenerator13limit_reachedEv(ptr noundef nonnull align 8 dereferenceable(6569) %0) local_unnamed_addr #1 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 16
  %3 = load ptr, ptr %2, align 8, !tbaa !5
  %4 = getelementptr inbounds i8, ptr %3, i64 80
  %5 = load i64, ptr %4, align 8, !tbaa !13
  %6 = getelementptr inbounds i8, ptr %0, i64 96
  %7 = load i64, ptr %6, align 8
  %8 = freeze i64 %7
  %9 = add i64 %5, -1
  %or.cond.not = icmp ult i64 %9, %8
  br i1 %or.cond.not, label %57, label %10

10:                                               ; preds = %1
  %11 = getelementptr inbounds i8, ptr %3, i64 88
  %12 = load i64, ptr %11, align 8, !tbaa !18
  %.not16 = icmp eq i64 %12, 0
  %13 = getelementptr inbounds i8, ptr %0, i64 64
  %14 = load ptr, ptr %13, align 8
  %.not17 = icmp eq ptr %14, null
  %or.cond25 = select i1 %.not16, i1 %.not17, i1 false
  br i1 %or.cond25, label %.thread, label %15

15:                                               ; preds = %10
  %16 = getelementptr inbounds i8, ptr %0, i64 5176
  %17 = tail call noundef double @_ZNK5TimerIN5boost6chrono12system_clockEE7secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
  %18 = getelementptr inbounds i8, ptr %0, i64 5184
  %19 = load double, ptr %18, align 8, !tbaa !19
  %20 = fsub double %17, %19
  %21 = fcmp ult double %20, 1.000000e+00
  br i1 %21, label %43, label %22

22:                                               ; preds = %15
  %23 = getelementptr inbounds i8, ptr %0, i64 5208
  %24 = load ptr, ptr %23, align 8, !tbaa !45
  %.not18 = icmp eq ptr %24, null
  br i1 %.not18, label %29, label %25

25:                                               ; preds = %22
  %26 = fptoui double %20 to i32
  %27 = zext i32 %26 to i64
  %28 = tail call noundef i64 @_ZN5boost16progress_displaypLEm(ptr noundef nonnull align 8 dereferenceable(132) %24, i64 noundef %27)
  br label %29

29:                                               ; preds = %25, %22
  store double %17, ptr %18, align 8, !tbaa !19
  %30 = load ptr, ptr %13, align 8, !tbaa !46
  %.not19 = icmp eq ptr %30, null
  br i1 %.not19, label %41, label %31

31:                                               ; preds = %29
  %32 = fptoui double %17 to i64
  %33 = getelementptr inbounds i8, ptr %0, i64 72
  %34 = load i32, ptr %33, align 8, !tbaa !47
  %35 = getelementptr inbounds i8, ptr %0, i64 76
  %36 = load i32, ptr %35, align 4, !tbaa !47
  %37 = getelementptr inbounds i8, ptr %0, i64 80
  %38 = load i32, ptr %37, align 8, !tbaa !47
  %39 = getelementptr inbounds i8, ptr %0, i64 84
  %40 = load i32, ptr %39, align 4, !tbaa !47
  tail call void @_ZN5Graph19add_opspersec_graphEmjjjj(ptr noundef nonnull align 8 dereferenceable(52) %30, i64 noundef %32, i32 noundef %34, i32 noundef %36, i32 noundef %38, i32 noundef %40)
  br label %41

41:                                               ; preds = %31, %29
  %42 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %42, i8 0, i64 16, i1 false)
  br label %43

43:                                               ; preds = %41, %15
  %44 = load ptr, ptr %2, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 88
  %46 = load i64, ptr %45, align 8, !tbaa !18
  %.not20 = icmp ne i64 %46, 0
  %47 = uitofp i64 %46 to double
  %48 = fcmp ogt double %17, %47
  %or.cond27 = and i1 %.not20, %48
  br i1 %or.cond27, label %49, label %.thread

49:                                               ; preds = %43
  store double %17, ptr %18, align 8, !tbaa !19
  br label %57

.thread:                                          ; preds = %43, %10
  %50 = phi ptr [ %44, %43 ], [ %3, %10 ]
  %51 = getelementptr inbounds i8, ptr %50, i64 96
  %52 = load i64, ptr %51, align 8, !tbaa !48
  %53 = getelementptr inbounds i8, ptr %0, i64 5784
  %54 = load i64, ptr %53, align 8
  %55 = freeze i64 %54
  %56 = add i64 %52, -1
  %or.cond29.not = icmp ult i64 %56, %55
  br label %57

57:                                               ; preds = %49, %.thread, %1
  %.1 = phi i1 [ true, %49 ], [ true, %1 ], [ %or.cond29.not, %.thread ]
  ret i1 %.1
}

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5Graph19add_opspersec_graphEmjjjj(ptr noundef nonnull align 8 dereferenceable(52), i64 noundef, i32 noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #1 align 2

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

!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, !10, i64 16}
!6 = !{!"_ZTS9Generator", !7, i64 8, !10, i64 16, !10, i64 24, !7, i64 32, !11, i64 40, !10, i64 64, !8, i64 72, !12, i64 88}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"_ZTS12ups_record_t", !7, i64 0, !10, i64 8, !7, i64 16}
!12 = !{!"bool", !8, i64 0}
!13 = !{!14, !17, i64 80}
!14 = !{!"_ZTS13Configuration", !12, i64 0, !7, i64 4, !12, i64 8, !12, i64 9, !12, i64 10, !15, i64 16, !12, i64 48, !7, i64 52, !7, i64 56, !7, i64 60, !12, i64 64, !7, i64 68, !17, i64 72, !17, i64 80, !17, i64 88, !17, i64 96, !7, i64 104, !12, i64 108, !7, i64 112, !7, i64 116, !7, i64 120, !7, i64 124, !12, i64 128, !12, i64 129, !7, i64 132, !12, i64 136, !7, i64 140, !12, i64 144, !12, i64 145, !12, i64 146, !12, i64 147, !12, i64 148, !7, i64 152, !7, i64 156, !7, i64 160, !12, i64 164, !12, i64 165, !12, i64 166, !7, i64 168, !7, i64 172, !15, i64 176, !7, i64 208, !7, i64 212, !7, i64 216, !12, i64 220, !12, i64 221, !7, i64 224, !7, i64 228, !7, i64 232, !12, i64 236, !12, i64 237, !12, i64 238, !12, i64 239, !7, i64 240, !12, i64 244, !12, i64 245}
!15 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !16, i64 0, !17, i64 8, !8, i64 16}
!16 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!17 = !{!"long", !8, i64 0}
!18 = !{!14, !17, i64 88}
!19 = !{!20, !28, i64 5184}
!20 = !{!"_ZTS16RuntimeGenerator", !6, i64 0, !7, i64 92, !17, i64 96, !10, i64 104, !21, i64 112, !21, i64 136, !25, i64 160, !26, i64 2664, !29, i64 5176, !28, i64 5184, !10, i64 5192, !10, i64 5200, !10, i64 5208, !32, i64 5216, !12, i64 5728, !40, i64 5736, !12, i64 6568}
!21 = !{!"_ZTSSt6vectorIhSaIhEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!25 = !{!"_ZTSN5boost6random23mersenne_twister_engineIjLm32ELm624ELm397ELm31ELj2567483615ELm11ELj4294967295ELm7ELj2636928640ELm15ELj4022730752ELm18ELj1812433253EEE", !8, i64 0, !17, i64 2496}
!26 = !{!"_ZTSN5boost6random10uniform_01INS0_23mersenne_twister_engineIjLm32ELm624ELm397ELm31ELj2567483615ELm11ELj4294967295ELm7ELj2636928640ELm15ELj4022730752ELm18ELj1812433253EEEdEE", !27, i64 0}
!27 = !{!"_ZTSN5boost6random6detail30backward_compatible_uniform_01INS0_23mersenne_twister_engineIjLm32ELm624ELm397ELm31ELj2567483615ELm11ELj4294967295ELm7ELj2636928640ELm15ELj4022730752ELm18ELj1812433253EEEdEE", !25, i64 0, !28, i64 2504}
!28 = !{!"double", !8, i64 0}
!29 = !{!"_ZTS5TimerIN5boost6chrono12system_clockEE", !30, i64 0}
!30 = !{!"_ZTSN5boost6chrono10time_pointINS0_12system_clockENS0_8durationIlNS_5ratioILl1ELl1000000000EEEEEEE", !31, i64 0}
!31 = !{!"_ZTSN5boost6chrono8durationIlNS_5ratioILl1ELl1000000000EEEEE", !17, i64 0}
!32 = !{!"_ZTSSt14basic_ofstreamIcSt11char_traitsIcEE", !33, i64 0, !34, i64 8}
!33 = !{!"_ZTSSo"}
!34 = !{!"_ZTSSt13basic_filebufIcSt11char_traitsIcEE", !35, i64 0, !8, i64 64, !37, i64 104, !38, i64 120, !39, i64 124, !39, i64 132, !39, i64 140, !10, i64 152, !17, i64 160, !12, i64 168, !12, i64 169, !12, i64 170, !8, i64 171, !10, i64 176, !10, i64 184, !12, i64 192, !10, i64 200, !10, i64 208, !17, i64 216, !10, i64 224, !10, i64 232}
!35 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !10, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !36, i64 56}
!36 = !{!"_ZTSSt6locale", !10, i64 0}
!37 = !{!"_ZTSSt12__basic_fileIcE", !10, i64 0, !12, i64 8}
!38 = !{!"_ZTSSt13_Ios_Openmode", !8, i64 0}
!39 = !{!"_ZTS11__mbstate_t", !7, i64 0, !8, i64 4}
!40 = !{!"_ZTS7Metrics", !10, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !17, i64 48, !17, i64 56, !28, i64 64, !28, i64 72, !28, i64 80, !28, i64 88, !28, i64 96, !28, i64 104, !28, i64 112, !28, i64 120, !28, i64 128, !28, i64 136, !28, i64 144, !28, i64 152, !28, i64 160, !41, i64 168}
!41 = !{!"_ZTS17ups_env_metrics_t", !42, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !17, i64 48, !17, i64 56, !17, i64 64, !17, i64 72, !17, i64 80, !17, i64 88, !17, i64 96, !17, i64 104, !17, i64 112, !17, i64 120, !17, i64 128, !17, i64 136, !17, i64 144, !17, i64 152, !17, i64 160, !17, i64 168, !17, i64 176, !17, i64 184, !17, i64 192, !17, i64 200, !17, i64 208, !17, i64 216, !43, i64 224, !43, i64 440, !7, i64 656}
!42 = !{!"short", !8, i64 0}
!43 = !{!"_ZTS15btree_metrics_t", !42, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !7, i64 32, !44, i64 36, !44, i64 56, !44, i64 76, !44, i64 96, !44, i64 116, !44, i64 136, !44, i64 156, !44, i64 176, !44, i64 196}
!44 = !{!"_ZTS17min_max_avg_u32_t", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16}
!45 = !{!20, !10, i64 5208}
!46 = !{!6, !10, i64 64}
!47 = !{!7, !7, i64 0}
!48 = !{!14, !17, i64 96}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,SROAPass,SimplifyCFGPass,TailCallElimPass