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

; 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.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 }>
%struct.ups_record_t = type { i32, ptr, i32 }
%"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 }
%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.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] }

; 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: mustprogress uwtable
define dso_local noundef i32 @_ZN16RuntimeGenerator16get_next_commandEv(ptr noundef nonnull align 8 dereferenceable(6569) %0) #1 align 2 {
  %2 = alloca i32, align 4
  %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 = call noundef zeroext i1 @_ZN16RuntimeGenerator13limit_reachedEv(ptr noundef nonnull align 8 dereferenceable(6569) %6)
  br i1 %7, label %8, label %40

8:                                                ; preds = %1
  %9 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 18
  %10 = load i8, ptr %9, align 8, !tbaa !9, !range !40, !noundef !41
  %11 = trunc i8 %10 to i1
  %12 = zext i1 %11 to i32
  %13 = icmp eq i32 %12, 0
  br i1 %13, label %14, label %28

14:                                               ; preds = %8
  %15 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %16 = load ptr, ptr %15, align 8, !tbaa !42
  %17 = getelementptr inbounds %struct.Configuration, ptr %16, i32 0, i32 53
  %18 = load i8, ptr %17, align 4, !tbaa !43, !range !40, !noundef !41
  %19 = trunc i8 %18 to i1
  br i1 %19, label %20, label %28

20:                                               ; preds = %14
  %21 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 3
  store i64 0, ptr %21, align 8, !tbaa !47
  %22 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 18
  store i8 1, ptr %22, align 8, !tbaa !9
  %23 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 4
  %24 = load ptr, ptr %23, align 8, !tbaa !48
  %25 = load ptr, ptr %24, align 8, !tbaa !49
  %26 = getelementptr inbounds ptr, ptr %25, i64 2
  %27 = load ptr, ptr %26, align 8
  call void %27(ptr noundef nonnull align 8 dereferenceable(8) %24)
  store i32 2, ptr %2, align 4
  br label %174

28:                                               ; preds = %14, %8
  %29 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 2
  %30 = load i32, ptr %29, align 4, !tbaa !51
  %31 = icmp eq i32 %30, 0
  br i1 %31, label %32, label %39

32:                                               ; preds = %28
  %33 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 11
  %34 = load ptr, ptr %33, align 8, !tbaa !52
  %35 = icmp ne ptr %34, null
  br i1 %35, label %36, label %37

36:                                               ; preds = %32
  store i32 3, ptr %2, align 4
  br label %174

37:                                               ; preds = %32
  %38 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 2
  store i32 2, ptr %38, align 4, !tbaa !51
  store i32 7, ptr %2, align 4
  br label %174

39:                                               ; preds = %28
  br label %40

40:                                               ; preds = %39, %1
  %41 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 18
  %42 = load i8, ptr %41, align 8, !tbaa !9, !range !40, !noundef !41
  %43 = trunc i8 %42 to i1
  br i1 %43, label %44, label %45

44:                                               ; preds = %40
  store i32 2, ptr %2, align 4
  br label %174

45:                                               ; preds = %40
  %46 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 3
  %47 = load i64, ptr %46, align 8, !tbaa !47
  %48 = icmp eq i64 %47, 0
  br i1 %48, label %49, label %57

49:                                               ; preds = %45
  %50 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %51 = load ptr, ptr %50, align 8, !tbaa !42
  %52 = getelementptr inbounds %struct.Configuration, ptr %51, i32 0, i32 5
  %53 = load i8, ptr %52, align 2, !tbaa !53, !range !40, !noundef !41
  %54 = trunc i8 %53 to i1
  br i1 %54, label %55, label %56

55:                                               ; preds = %49
  store i32 6, ptr %2, align 4
  br label %174

56:                                               ; preds = %49
  store i32 5, ptr %2, align 4
  br label %174

57:                                               ; preds = %45
  %58 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %59 = load ptr, ptr %58, align 8, !tbaa !42
  %60 = getelementptr inbounds %struct.Configuration, ptr %59, i32 0, i32 33
  %61 = load i32, ptr %60, align 4, !tbaa !54
  %62 = icmp ne i32 %61, 0
  br i1 %62, label %63, label %81

63:                                               ; preds = %57
  %64 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 11
  %65 = load ptr, ptr %64, align 8, !tbaa !52
  %66 = icmp ne ptr %65, null
  br i1 %66, label %68, label %67

67:                                               ; preds = %63
  store i32 8, ptr %2, align 4
  br label %174

68:                                               ; preds = %63
  %69 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 3
  %70 = load i64, ptr %69, align 8, !tbaa !47
  %71 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %72 = load ptr, ptr %71, align 8, !tbaa !42
  %73 = getelementptr inbounds %struct.Configuration, ptr %72, i32 0, i32 33
  %74 = load i32, ptr %73, align 4, !tbaa !54
  %75 = add i32 %74, 2
  %76 = zext i32 %75 to i64
  %77 = urem i64 %70, %76
  %78 = icmp eq i64 %77, 0
  br i1 %78, label %79, label %80

79:                                               ; preds = %68
  store i32 3, ptr %2, align 4
  br label %174

80:                                               ; preds = %68
  br label %81

81:                                               ; preds = %80, %57
  %82 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %83 = load ptr, ptr %82, align 8, !tbaa !42
  %84 = getelementptr inbounds %struct.Configuration, ptr %83, i32 0, i32 24
  %85 = load i32, ptr %84, align 4, !tbaa !55
  %86 = icmp ne i32 %85, 0
  br i1 %86, label %99, label %87

87:                                               ; preds = %81
  %88 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %89 = load ptr, ptr %88, align 8, !tbaa !42
  %90 = getelementptr inbounds %struct.Configuration, ptr %89, i32 0, i32 25
  %91 = load i32, ptr %90, align 8, !tbaa !56
  %92 = icmp ne i32 %91, 0
  br i1 %92, label %99, label %93

93:                                               ; preds = %87
  %94 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %95 = load ptr, ptr %94, align 8, !tbaa !42
  %96 = getelementptr inbounds %struct.Configuration, ptr %95, i32 0, i32 26
  %97 = load i32, ptr %96, align 4, !tbaa !57
  %98 = icmp ne i32 %97, 0
  br i1 %98, label %99, label %173

99:                                               ; preds = %93, %87, %81
  call void @llvm.lifetime.start.p0(i64 8, ptr %4) #2
  %100 = getelementptr inbounds %class.RuntimeGenerator, ptr %6, i32 0, i32 8
  %101 = call noundef double @_ZN5boost6random6detail30backward_compatible_uniform_01INS0_23mersenne_twister_engineIjLm32ELm624ELm397ELm31ELj2567483615ELm11ELj4294967295ELm7ELj2636928640ELm15ELj4022730752ELm18ELj1812433253EEEdEclEv(ptr noundef nonnull align 8 dereferenceable(2512) %100)
  store double %101, ptr %4, align 8, !tbaa !58
  %102 = load double, ptr %4, align 8, !tbaa !58
  %103 = fmul double %102, 1.000000e+02
  %104 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %105 = load ptr, ptr %104, align 8, !tbaa !42
  %106 = getelementptr inbounds %struct.Configuration, ptr %105, i32 0, i32 24
  %107 = load i32, ptr %106, align 4, !tbaa !55
  %108 = sitofp i32 %107 to double
  %109 = fcmp olt double %103, %108
  br i1 %109, label %110, label %111

110:                                              ; preds = %99
  store i32 2, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %170

111:                                              ; preds = %99
  %112 = load double, ptr %4, align 8, !tbaa !58
  %113 = fmul double %112, 1.000000e+02
  %114 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %115 = load ptr, ptr %114, align 8, !tbaa !42
  %116 = getelementptr inbounds %struct.Configuration, ptr %115, i32 0, i32 24
  %117 = load i32, ptr %116, align 4, !tbaa !55
  %118 = sitofp i32 %117 to double
  %119 = fcmp oge double %113, %118
  br i1 %119, label %120, label %135

120:                                              ; preds = %111
  %121 = load double, ptr %4, align 8, !tbaa !58
  %122 = fmul double %121, 1.000000e+02
  %123 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %124 = load ptr, ptr %123, align 8, !tbaa !42
  %125 = getelementptr inbounds %struct.Configuration, ptr %124, i32 0, i32 24
  %126 = load i32, ptr %125, align 4, !tbaa !55
  %127 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %128 = load ptr, ptr %127, align 8, !tbaa !42
  %129 = getelementptr inbounds %struct.Configuration, ptr %128, i32 0, i32 25
  %130 = load i32, ptr %129, align 8, !tbaa !56
  %131 = add nsw i32 %126, %130
  %132 = sitofp i32 %131 to double
  %133 = fcmp olt double %122, %132
  br i1 %133, label %134, label %135

134:                                              ; preds = %120
  store i32 1, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %170

135:                                              ; preds = %120, %111
  %136 = load double, ptr %4, align 8, !tbaa !58
  %137 = fmul double %136, 1.000000e+02
  %138 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %139 = load ptr, ptr %138, align 8, !tbaa !42
  %140 = getelementptr inbounds %struct.Configuration, ptr %139, i32 0, i32 24
  %141 = load i32, ptr %140, align 4, !tbaa !55
  %142 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %143 = load ptr, ptr %142, align 8, !tbaa !42
  %144 = getelementptr inbounds %struct.Configuration, ptr %143, i32 0, i32 25
  %145 = load i32, ptr %144, align 8, !tbaa !56
  %146 = add nsw i32 %141, %145
  %147 = sitofp i32 %146 to double
  %148 = fcmp oge double %137, %147
  br i1 %148, label %149, label %169

149:                                              ; preds = %135
  %150 = load double, ptr %4, align 8, !tbaa !58
  %151 = fmul double %150, 1.000000e+02
  %152 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %153 = load ptr, ptr %152, align 8, !tbaa !42
  %154 = getelementptr inbounds %struct.Configuration, ptr %153, i32 0, i32 24
  %155 = load i32, ptr %154, align 4, !tbaa !55
  %156 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %157 = load ptr, ptr %156, align 8, !tbaa !42
  %158 = getelementptr inbounds %struct.Configuration, ptr %157, i32 0, i32 25
  %159 = load i32, ptr %158, align 8, !tbaa !56
  %160 = add nsw i32 %155, %159
  %161 = getelementptr inbounds %class.Generator, ptr %6, i32 0, i32 3
  %162 = load ptr, ptr %161, align 8, !tbaa !42
  %163 = getelementptr inbounds %struct.Configuration, ptr %162, i32 0, i32 26
  %164 = load i32, ptr %163, align 4, !tbaa !57
  %165 = add nsw i32 %160, %164
  %166 = sitofp i32 %165 to double
  %167 = fcmp olt double %151, %166
  br i1 %167, label %168, label %169

168:                                              ; preds = %149
  store i32 4, ptr %2, align 4
  store i32 1, ptr %5, align 4
  br label %170

169:                                              ; preds = %149, %135
  store i32 0, ptr %5, align 4
  br label %170

170:                                              ; preds = %169, %168, %134, %110
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #2
  %171 = load i32, ptr %5, align 4
  switch i32 %171, label %176 [
    i32 0, label %172
    i32 1, label %174
  ]

172:                                              ; preds = %170
  br label %173

173:                                              ; preds = %172, %93
  store i32 0, ptr %2, align 4
  br label %174

174:                                              ; preds = %173, %170, %79, %67, %56, %55, %44, %37, %36, %20
  %175 = load i32, ptr %2, align 4
  ret i32 %175

176:                                              ; preds = %170
  unreachable
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN16RuntimeGenerator13limit_reachedEv(ptr noundef nonnull align 8 dereferenceable(6569)) #1 align 2

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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, !14, i64 6568}
!10 = !{!"_ZTS16RuntimeGenerator", !11, i64 0, !12, i64 92, !15, i64 96, !6, i64 104, !16, i64 112, !16, i64 136, !20, i64 160, !21, i64 2664, !24, i64 5176, !23, i64 5184, !6, i64 5192, !6, i64 5200, !6, i64 5208, !27, i64 5216, !14, i64 5728, !35, i64 5736, !14, i64 6568}
!11 = !{!"_ZTS9Generator", !12, i64 8, !6, i64 16, !6, i64 24, !12, i64 32, !13, i64 40, !6, i64 64, !7, i64 72, !14, i64 88}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS12ups_record_t", !12, i64 0, !6, i64 8, !12, i64 16}
!14 = !{!"bool", !7, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIhSaIhEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIhSaIhEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIhSaIhEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"_ZTSN5boost6random23mersenne_twister_engineIjLm32ELm624ELm397ELm31ELj2567483615ELm11ELj4294967295ELm7ELj2636928640ELm15ELj4022730752ELm18ELj1812433253EEE", !7, i64 0, !15, i64 2496}
!21 = !{!"_ZTSN5boost6random10uniform_01INS0_23mersenne_twister_engineIjLm32ELm624ELm397ELm31ELj2567483615ELm11ELj4294967295ELm7ELj2636928640ELm15ELj4022730752ELm18ELj1812433253EEEdEE", !22, i64 0}
!22 = !{!"_ZTSN5boost6random6detail30backward_compatible_uniform_01INS0_23mersenne_twister_engineIjLm32ELm624ELm397ELm31ELj2567483615ELm11ELj4294967295ELm7ELj2636928640ELm15ELj4022730752ELm18ELj1812433253EEEdEE", !20, i64 0, !23, i64 2504}
!23 = !{!"double", !7, i64 0}
!24 = !{!"_ZTS5TimerIN5boost6chrono12system_clockEE", !25, i64 0}
!25 = !{!"_ZTSN5boost6chrono10time_pointINS0_12system_clockENS0_8durationIlNS_5ratioILl1ELl1000000000EEEEEEE", !26, i64 0}
!26 = !{!"_ZTSN5boost6chrono8durationIlNS_5ratioILl1ELl1000000000EEEEE", !15, i64 0}
!27 = !{!"_ZTSSt14basic_ofstreamIcSt11char_traitsIcEE", !28, i64 0, !29, i64 8}
!28 = !{!"_ZTSSo"}
!29 = !{!"_ZTSSt13basic_filebufIcSt11char_traitsIcEE", !30, i64 0, !7, i64 64, !32, i64 104, !33, i64 120, !34, i64 124, !34, i64 132, !34, i64 140, !6, i64 152, !15, i64 160, !14, i64 168, !14, i64 169, !14, i64 170, !7, i64 171, !6, i64 176, !6, i64 184, !14, i64 192, !6, i64 200, !6, i64 208, !15, i64 216, !6, i64 224, !6, i64 232}
!30 = !{!"_ZTSSt15basic_streambufIcSt11char_traitsIcEE", !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !31, i64 56}
!31 = !{!"_ZTSSt6locale", !6, i64 0}
!32 = !{!"_ZTSSt12__basic_fileIcE", !6, i64 0, !14, i64 8}
!33 = !{!"_ZTSSt13_Ios_Openmode", !7, i64 0}
!34 = !{!"_ZTS11__mbstate_t", !12, i64 0, !7, i64 4}
!35 = !{!"_ZTS7Metrics", !6, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !23, i64 64, !23, i64 72, !23, i64 80, !23, i64 88, !23, i64 96, !23, i64 104, !23, i64 112, !23, i64 120, !23, i64 128, !23, i64 136, !23, i64 144, !23, i64 152, !23, i64 160, !36, i64 168}
!36 = !{!"_ZTS17ups_env_metrics_t", !37, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !15, i64 64, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112, !15, i64 120, !15, i64 128, !15, i64 136, !15, i64 144, !15, i64 152, !15, i64 160, !15, i64 168, !15, i64 176, !15, i64 184, !15, i64 192, !15, i64 200, !15, i64 208, !15, i64 216, !38, i64 224, !38, i64 440, !12, i64 656}
!37 = !{!"short", !7, i64 0}
!38 = !{!"_ZTS15btree_metrics_t", !37, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !12, i64 32, !39, i64 36, !39, i64 56, !39, i64 76, !39, i64 96, !39, i64 116, !39, i64 136, !39, i64 156, !39, i64 176, !39, i64 196}
!39 = !{!"_ZTS17min_max_avg_u32_t", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!40 = !{i8 0, i8 2}
!41 = !{}
!42 = !{!11, !6, i64 16}
!43 = !{!44, !14, i64 220}
!44 = !{!"_ZTS13Configuration", !14, i64 0, !12, i64 4, !14, i64 8, !14, i64 9, !14, i64 10, !45, i64 16, !14, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !14, i64 64, !12, i64 68, !15, i64 72, !15, i64 80, !15, i64 88, !15, i64 96, !12, i64 104, !14, i64 108, !12, i64 112, !12, i64 116, !12, i64 120, !12, i64 124, !14, i64 128, !14, i64 129, !12, i64 132, !14, i64 136, !12, i64 140, !14, i64 144, !14, i64 145, !14, i64 146, !14, i64 147, !14, i64 148, !12, i64 152, !12, i64 156, !12, i64 160, !14, i64 164, !14, i64 165, !14, i64 166, !12, i64 168, !12, i64 172, !45, i64 176, !12, i64 208, !12, i64 212, !12, i64 216, !14, i64 220, !14, i64 221, !12, i64 224, !12, i64 228, !12, i64 232, !14, i64 236, !14, i64 237, !14, i64 238, !14, i64 239, !12, i64 240, !14, i64 244, !14, i64 245}
!45 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !46, i64 0, !15, i64 8, !7, i64 16}
!46 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!47 = !{!10, !15, i64 96}
!48 = !{!10, !6, i64 104}
!49 = !{!50, !50, i64 0}
!50 = !{!"vtable pointer", !8, i64 0}
!51 = !{!10, !12, i64 92}
!52 = !{!10, !6, i64 5192}
!53 = !{!44, !14, i64 10}
!54 = !{!44, !12, i64 140}
!55 = !{!44, !12, i64 116}
!56 = !{!44, !12, i64 120}
!57 = !{!44, !12, i64 124}
!58 = !{!23, !23, i64 0}


; 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 uwtable
define dso_local noundef i32 @_ZN16RuntimeGenerator16get_next_commandEv(ptr noundef nonnull align 8 dereferenceable(6569) %0) local_unnamed_addr #0 align 2 {
  %2 = tail call noundef zeroext i1 @_ZN16RuntimeGenerator13limit_reachedEv(ptr noundef nonnull align 8 dereferenceable(6569) %0)
  %3 = getelementptr inbounds i8, ptr %0, i64 6568
  %4 = load i8, ptr %3, align 8, !tbaa !5, !range !39
  br i1 %2, label %5, label %._crit_edge

5:                                                ; preds = %1
  %6 = icmp eq i8 %4, 0
  br i1 %6, label %7, label %20

7:                                                ; preds = %5
  %8 = getelementptr inbounds i8, ptr %0, i64 16
  %9 = load ptr, ptr %8, align 8, !tbaa !40
  %10 = getelementptr inbounds i8, ptr %9, i64 220
  %11 = load i8, ptr %10, align 4, !tbaa !41, !range !39, !noundef !45
  %12 = trunc nuw i8 %11 to i1
  br i1 %12, label %13, label %20

13:                                               ; preds = %7
  %14 = getelementptr inbounds i8, ptr %0, i64 96
  store i64 0, ptr %14, align 8, !tbaa !46
  store i8 1, ptr %3, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %0, i64 104
  %16 = load ptr, ptr %15, align 8, !tbaa !47
  %17 = load ptr, ptr %16, align 8, !tbaa !48
  %18 = getelementptr inbounds i8, ptr %17, i64 16
  %19 = load ptr, ptr %18, align 8
  tail call void %19(ptr noundef nonnull align 8 dereferenceable(8) %16)
  br label %78

20:                                               ; preds = %7, %5
  %21 = getelementptr inbounds i8, ptr %0, i64 92
  %22 = load i32, ptr %21, align 4, !tbaa !50
  %23 = icmp eq i32 %22, 0
  br i1 %23, label %24, label %._crit_edge

24:                                               ; preds = %20
  %25 = getelementptr inbounds i8, ptr %0, i64 5192
  %26 = load ptr, ptr %25, align 8, !tbaa !51
  %.not16 = icmp eq ptr %26, null
  br i1 %.not16, label %27, label %78

27:                                               ; preds = %24
  store i32 2, ptr %21, align 4, !tbaa !50
  br label %78

._crit_edge:                                      ; preds = %1, %20
  %28 = trunc nuw i8 %4 to i1
  br i1 %28, label %78, label %29

29:                                               ; preds = %._crit_edge
  %30 = getelementptr inbounds i8, ptr %0, i64 96
  %31 = load i64, ptr %30, align 8, !tbaa !46
  %32 = icmp eq i64 %31, 0
  %33 = getelementptr inbounds i8, ptr %0, i64 16
  %34 = load ptr, ptr %33, align 8, !tbaa !40
  br i1 %32, label %35, label %39

35:                                               ; preds = %29
  %36 = getelementptr inbounds i8, ptr %34, i64 10
  %37 = load i8, ptr %36, align 2, !tbaa !52, !range !39, !noundef !45
  %38 = trunc nuw i8 %37 to i1
  %. = select i1 %38, i32 6, i32 5
  br label %78

39:                                               ; preds = %29
  %40 = getelementptr inbounds i8, ptr %34, i64 140
  %41 = load i32, ptr %40, align 4, !tbaa !53
  %.not = icmp eq i32 %41, 0
  br i1 %.not, label %50, label %42

42:                                               ; preds = %39
  %43 = getelementptr inbounds i8, ptr %0, i64 5192
  %44 = load ptr, ptr %43, align 8, !tbaa !51
  %.not12 = icmp eq ptr %44, null
  br i1 %.not12, label %78, label %45

45:                                               ; preds = %42
  %46 = add i32 %41, 2
  %47 = zext i32 %46 to i64
  %48 = urem i64 %31, %47
  %49 = icmp eq i64 %48, 0
  br i1 %49, label %78, label %50

50:                                               ; preds = %45, %39
  %51 = getelementptr inbounds i8, ptr %34, i64 116
  %52 = load i32, ptr %51, align 4, !tbaa !54
  %.not13 = icmp eq i32 %52, 0
  br i1 %.not13, label %53, label %59

53:                                               ; preds = %50
  %54 = getelementptr inbounds i8, ptr %34, i64 120
  %55 = load i32, ptr %54, align 8, !tbaa !55
  %.not14 = icmp eq i32 %55, 0
  br i1 %.not14, label %56, label %59

56:                                               ; preds = %53
  %57 = getelementptr inbounds i8, ptr %34, i64 124
  %58 = load i32, ptr %57, align 4, !tbaa !56
  %.not15 = icmp eq i32 %58, 0
  br i1 %.not15, label %78, label %59

59:                                               ; preds = %56, %53, %50
  %60 = getelementptr inbounds i8, ptr %0, i64 2664
  %61 = tail call noundef double @_ZN5boost6random6detail30backward_compatible_uniform_01INS0_23mersenne_twister_engineIjLm32ELm624ELm397ELm31ELj2567483615ELm11ELj4294967295ELm7ELj2636928640ELm15ELj4022730752ELm18ELj1812433253EEEdEclEv(ptr noundef nonnull align 8 dereferenceable(2512) %60)
  %62 = fmul double %61, 1.000000e+02
  %63 = load ptr, ptr %33, align 8, !tbaa !40
  %64 = getelementptr inbounds i8, ptr %63, i64 116
  %65 = load i32, ptr %64, align 4, !tbaa !54
  %66 = sitofp i32 %65 to double
  %67 = fcmp olt double %62, %66
  br i1 %67, label %78, label %68

68:                                               ; preds = %59
  %69 = fcmp oge double %62, %66
  %.phi.trans.insert21 = getelementptr inbounds i8, ptr %63, i64 120
  %.pre22 = load i32, ptr %.phi.trans.insert21, align 8, !tbaa !55
  %.pre23 = add nsw i32 %.pre22, %65
  %.pre24 = sitofp i32 %.pre23 to double
  %70 = fcmp olt double %62, %.pre24
  %or.cond = select i1 %69, i1 %70, i1 false
  br i1 %or.cond, label %78, label %._crit_edge20

._crit_edge20:                                    ; preds = %68
  %71 = fcmp ult double %62, %.pre24
  br i1 %71, label %78, label %72

72:                                               ; preds = %._crit_edge20
  %73 = getelementptr inbounds i8, ptr %63, i64 124
  %74 = load i32, ptr %73, align 4, !tbaa !56
  %75 = add nsw i32 %74, %.pre23
  %76 = sitofp i32 %75 to double
  %77 = fcmp olt double %62, %76
  br i1 %77, label %.thread, label %78

.thread:                                          ; preds = %72
  br label %78

78:                                               ; preds = %68, %59, %56, %._crit_edge20, %72, %.thread, %45, %42, %35, %._crit_edge, %24, %27, %13
  %.1 = phi i32 [ 2, %13 ], [ 7, %27 ], [ 3, %24 ], [ 2, %._crit_edge ], [ %., %35 ], [ 8, %42 ], [ 3, %45 ], [ 0, %72 ], [ 0, %._crit_edge20 ], [ 0, %56 ], [ 2, %59 ], [ 4, %.thread ], [ 1, %68 ]
  ret i32 %.1
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN16RuntimeGenerator13limit_reachedEv(ptr noundef nonnull align 8 dereferenceable(6569)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZN5boost6random6detail30backward_compatible_uniform_01INS0_23mersenne_twister_engineIjLm32ELm624ELm397ELm31ELj2567483615ELm11ELj4294967295ELm7ELj2636928640ELm15ELj4022730752ELm18ELj1812433253EEEdEclEv(ptr noundef nonnull align 8 dereferenceable(2512)) local_unnamed_addr #0 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" }

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


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