; LLVM IR from cruppstahl/upscaledb :: tools/ups_bench/generator_parser.ll (ZN15ParserGenerator6insertEPKcS1_S1_)

; 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.ups_key_t = type { i16, ptr, i32, i32 }
%struct.ups_record_t = type { i32, ptr, i32 }
%struct.Timer.4 = type { %"class.boost::chrono::time_point.5" }
%"class.boost::chrono::time_point.5" = type { %"class.boost::chrono::duration" }
%"class.boost::chrono::duration" = type { i64 }
%class.ParserGenerator = type { %class.Generator.base, ptr, ptr, ptr, i8, %struct.Metrics, %"class.std::vector", i32, %struct.Timer, i32, ptr, %"class.std::vector" }
%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.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 }
%struct.Timer = type { %"class.boost::chrono::time_point" }
%"class.boost::chrono::time_point" = type { %"class.boost::chrono::duration" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::__cxx11::basic_string<char>, std::allocator<std::__cxx11::basic_string<char>>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%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 void @_ZN15ParserGenerator6insertEPKcS1_S1_(ptr noundef nonnull align 8 dereferenceable(1040) %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #1 align 2 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca [64 x i8], align 16
  %10 = alloca %struct.ups_key_t, align 8
  %11 = alloca %struct.ups_record_t, align 8
  %12 = alloca %struct.Timer.4, align 8
  %13 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  %14 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr %10) #4
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  %16 = getelementptr inbounds [64 x i8], ptr %9, i64 0, i64 0
  call void @_ZNK15ParserGenerator12generate_keyEPKcPc(ptr dead_on_unwind writable sret(%struct.ups_key_t) align 8 %10, ptr noundef nonnull align 8 dereferenceable(1040) %14, ptr noundef %15, ptr noundef %16)
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #4
  %17 = load ptr, ptr %7, align 8, !tbaa !5
  call void @_ZN15ParserGenerator15generate_recordEPKc(ptr dead_on_unwind writable sret(%struct.ups_record_t) align 8 %11, ptr noundef nonnull align 8 dereferenceable(1040) %14, ptr noundef %17)
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  call void @_ZN5TimerIN5boost6chrono12steady_clockEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %12)
  %18 = getelementptr inbounds %class.ParserGenerator, ptr %14, i32 0, i32 2
  %19 = load ptr, ptr %18, align 8, !tbaa !9
  %20 = icmp ne ptr %19, null
  br i1 %20, label %21, label %28

21:                                               ; preds = %4
  %22 = getelementptr inbounds %class.Generator, ptr %14, i32 0, i32 4
  %23 = load ptr, ptr %22, align 8, !tbaa !29
  %24 = getelementptr inbounds %class.ParserGenerator, ptr %14, i32 0, i32 2
  %25 = load ptr, ptr %24, align 8, !tbaa !9
  %26 = call noundef i32 @_ZN8Database13cursor_insertEPmP9ups_key_tP12ups_record_t(ptr noundef nonnull align 8 dereferenceable(24) %23, ptr noundef %25, ptr noundef %10, ptr noundef %11)
  %27 = getelementptr inbounds %class.Generator, ptr %14, i32 0, i32 5
  store i32 %26, ptr %27, align 8, !tbaa !30
  br label %35

28:                                               ; preds = %4
  %29 = getelementptr inbounds %class.Generator, ptr %14, i32 0, i32 4
  %30 = load ptr, ptr %29, align 8, !tbaa !29
  %31 = getelementptr inbounds %class.ParserGenerator, ptr %14, i32 0, i32 1
  %32 = load ptr, ptr %31, align 8, !tbaa !31
  %33 = call noundef i32 @_ZN8Database6insertEPmP9ups_key_tP12ups_record_t(ptr noundef nonnull align 8 dereferenceable(24) %30, ptr noundef %32, ptr noundef %10, ptr noundef %11)
  %34 = getelementptr inbounds %class.Generator, ptr %14, i32 0, i32 5
  store i32 %33, ptr %34, align 8, !tbaa !30
  br label %35

35:                                               ; preds = %28, %21
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %36 = call noundef double @_ZNK5TimerIN5boost6chrono12steady_clockEE7secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %12)
  store double %36, ptr %13, align 8, !tbaa !32
  %37 = getelementptr inbounds %class.ParserGenerator, ptr %14, i32 0, i32 5
  %38 = getelementptr inbounds %struct.Metrics, ptr %37, i32 0, i32 9
  %39 = load double, ptr %38, align 8, !tbaa !33
  %40 = load double, ptr %13, align 8, !tbaa !32
  %41 = fcmp ogt double %39, %40
  br i1 %41, label %42, label %46

42:                                               ; preds = %35
  %43 = load double, ptr %13, align 8, !tbaa !32
  %44 = getelementptr inbounds %class.ParserGenerator, ptr %14, i32 0, i32 5
  %45 = getelementptr inbounds %struct.Metrics, ptr %44, i32 0, i32 9
  store double %43, ptr %45, align 8, !tbaa !33
  br label %46

46:                                               ; preds = %42, %35
  %47 = getelementptr inbounds %class.ParserGenerator, ptr %14, i32 0, i32 5
  %48 = getelementptr inbounds %struct.Metrics, ptr %47, i32 0, i32 10
  %49 = load double, ptr %48, align 8, !tbaa !34
  %50 = load double, ptr %13, align 8, !tbaa !32
  %51 = fcmp olt double %49, %50
  br i1 %51, label %52, label %56

52:                                               ; preds = %46
  %53 = load double, ptr %13, align 8, !tbaa !32
  %54 = getelementptr inbounds %class.ParserGenerator, ptr %14, i32 0, i32 5
  %55 = getelementptr inbounds %struct.Metrics, ptr %54, i32 0, i32 10
  store double %53, ptr %55, align 8, !tbaa !34
  br label %56

56:                                               ; preds = %52, %46
  %57 = load double, ptr %13, align 8, !tbaa !32
  %58 = getelementptr inbounds %class.ParserGenerator, ptr %14, i32 0, i32 5
  %59 = getelementptr inbounds %struct.Metrics, ptr %58, i32 0, i32 11
  %60 = load double, ptr %59, align 8, !tbaa !35
  %61 = fadd double %60, %57
  store double %61, ptr %59, align 8, !tbaa !35
  %62 = getelementptr inbounds %class.Generator, ptr %14, i32 0, i32 5
  %63 = load i32, ptr %62, align 8, !tbaa !30
  %64 = icmp ne i32 %63, 0
  br i1 %64, label %65, label %71

65:                                               ; preds = %56
  %66 = getelementptr inbounds %class.Generator, ptr %14, i32 0, i32 5
  %67 = load i32, ptr %66, align 8, !tbaa !30
  %68 = icmp ne i32 %67, -12
  br i1 %68, label %69, label %71

69:                                               ; preds = %65
  %70 = getelementptr inbounds %class.ParserGenerator, ptr %14, i32 0, i32 4
  store i8 0, ptr %70, align 8, !tbaa !36
  br label %71

71:                                               ; preds = %69, %65, %56
  %72 = getelementptr inbounds %class.Generator, ptr %14, i32 0, i32 5
  %73 = load i32, ptr %72, align 8, !tbaa !30
  %74 = icmp eq i32 %73, 0
  br i1 %74, label %75, label %108

75:                                               ; preds = %71
  %76 = getelementptr inbounds %struct.ups_key_t, ptr %10, i32 0, i32 0
  %77 = load i16, ptr %76, align 8, !tbaa !37
  %78 = zext i16 %77 to i32
  %79 = getelementptr inbounds %struct.ups_record_t, ptr %11, i32 0, i32 0
  %80 = load i32, ptr %79, align 8, !tbaa !39
  %81 = add i32 %78, %80
  %82 = zext i32 %81 to i64
  %83 = getelementptr inbounds %class.ParserGenerator, ptr %14, i32 0, i32 5
  %84 = getelementptr inbounds %struct.Metrics, ptr %83, i32 0, i32 6
  %85 = load i64, ptr %84, align 8, !tbaa !40
  %86 = add i64 %85, %82
  store i64 %86, ptr %84, align 8, !tbaa !40
  %87 = getelementptr inbounds %class.ParserGenerator, ptr %14, i32 0, i32 3
  %88 = load ptr, ptr %87, align 8, !tbaa !41
  %89 = icmp ne ptr %88, null
  br i1 %89, label %90, label %107

90:                                               ; preds = %75
  %91 = getelementptr inbounds %class.Generator, ptr %14, i32 0, i32 3
  %92 = load ptr, ptr %91, align 8, !tbaa !42
  %93 = getelementptr inbounds %struct.Configuration, ptr %92, i32 0, i32 19
  %94 = load i64, ptr %93, align 8, !tbaa !43
  %95 = icmp ne i64 %94, 0
  br i1 %95, label %96, label %107

96:                                               ; preds = %90
  %97 = getelementptr inbounds %struct.ups_key_t, ptr %10, i32 0, i32 0
  %98 = load i16, ptr %97, align 8, !tbaa !37
  %99 = zext i16 %98 to i32
  %100 = getelementptr inbounds %struct.ups_record_t, ptr %11, i32 0, i32 0
  %101 = load i32, ptr %100, align 8, !tbaa !39
  %102 = add i32 %99, %101
  %103 = zext i32 %102 to i64
  %104 = getelementptr inbounds %class.ParserGenerator, ptr %14, i32 0, i32 3
  %105 = load ptr, ptr %104, align 8, !tbaa !41
  %106 = call noundef i64 @_ZN5boost16progress_displaypLEm(ptr noundef nonnull align 8 dereferenceable(132) %105, i64 noundef %103)
  br label %107

107:                                              ; preds = %96, %90, %75
  br label %108

108:                                              ; preds = %107, %71
  %109 = getelementptr inbounds %class.ParserGenerator, ptr %14, i32 0, i32 5
  %110 = getelementptr inbounds %struct.Metrics, ptr %109, i32 0, i32 1
  %111 = load i64, ptr %110, align 8, !tbaa !47
  %112 = add i64 %111, 1
  store i64 %112, ptr %110, align 8, !tbaa !47
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr %9) #4
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNK15ParserGenerator12generate_keyEPKcPc(ptr dead_on_unwind noalias writable sret(%struct.ups_key_t) align 8, ptr noundef nonnull align 8 dereferenceable(1040), ptr noundef, ptr noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN15ParserGenerator15generate_recordEPKc(ptr dead_on_unwind noalias writable sret(%struct.ups_record_t) align 8, ptr noundef nonnull align 8 dereferenceable(1040), ptr noundef) #2 align 2

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

declare noundef i32 @_ZN8Database13cursor_insertEPmP9ups_key_tP12ups_record_t(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef) #3

declare noundef i32 @_ZN8Database6insertEPmP9ups_key_tP12ups_record_t(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef double @_ZNK5TimerIN5boost6chrono12steady_clockEE7secondsEv(ptr noundef nonnull align 8 dereferenceable(8)) #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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !6, i64 104}
!10 = !{!"_ZTS15ParserGenerator", !11, i64 0, !6, i64 96, !6, i64 104, !6, i64 112, !14, i64 120, !15, i64 128, !22, i64 960, !12, i64 984, !26, i64 992, !12, i64 1000, !6, i64 1008, !22, i64 1016}
!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 = !{!"_ZTS7Metrics", !6, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !16, 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, !18, i64 168}
!16 = !{!"long", !7, i64 0}
!17 = !{!"double", !7, i64 0}
!18 = !{!"_ZTS17ups_env_metrics_t", !19, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !16, i64 32, !16, i64 40, !16, i64 48, !16, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !16, i64 168, !16, i64 176, !16, i64 184, !16, i64 192, !16, i64 200, !16, i64 208, !16, i64 216, !20, i64 224, !20, i64 440, !12, i64 656}
!19 = !{!"short", !7, i64 0}
!20 = !{!"_ZTS15btree_metrics_t", !19, i64 0, !16, i64 8, !16, i64 16, !16, i64 24, !12, i64 32, !21, i64 36, !21, i64 56, !21, i64 76, !21, i64 96, !21, i64 116, !21, i64 136, !21, i64 156, !21, i64 176, !21, i64 196}
!21 = !{!"_ZTS17min_max_avg_u32_t", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16}
!22 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!"_ZTS5TimerIN5boost6chrono12system_clockEE", !27, i64 0}
!27 = !{!"_ZTSN5boost6chrono10time_pointINS0_12system_clockENS0_8durationIlNS_5ratioILl1ELl1000000000EEEEEEE", !28, i64 0}
!28 = !{!"_ZTSN5boost6chrono8durationIlNS_5ratioILl1ELl1000000000EEEEE", !16, i64 0}
!29 = !{!11, !6, i64 24}
!30 = !{!11, !12, i64 32}
!31 = !{!10, !6, i64 96}
!32 = !{!17, !17, i64 0}
!33 = !{!10, !17, i64 200}
!34 = !{!10, !17, i64 208}
!35 = !{!10, !17, i64 216}
!36 = !{!10, !14, i64 120}
!37 = !{!38, !19, i64 0}
!38 = !{!"_ZTS9ups_key_t", !19, i64 0, !6, i64 8, !12, i64 16, !12, i64 20}
!39 = !{!13, !12, i64 0}
!40 = !{!10, !16, i64 176}
!41 = !{!10, !6, i64 112}
!42 = !{!11, !6, i64 16}
!43 = !{!44, !16, i64 96}
!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, !16, i64 72, !16, i64 80, !16, i64 88, !16, 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, !16, i64 8, !7, i64 16}
!46 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!47 = !{!10, !16, i64 136}


; 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.ups_key_t = type { i16, ptr, i32, i32 }
%struct.ups_record_t = type { i32, ptr, i32 }
%struct.Timer.4 = type { %"class.boost::chrono::time_point.5" }
%"class.boost::chrono::time_point.5" = type { %"class.boost::chrono::duration" }
%"class.boost::chrono::duration" = type { i64 }

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

; Function Attrs: mustprogress 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 void @_ZN15ParserGenerator6insertEPKcS1_S1_(ptr noundef nonnull align 8 dereferenceable(1040) %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef readnone %3) local_unnamed_addr #1 align 2 {
  %5 = alloca [64 x i8], align 16
  %6 = alloca %struct.ups_key_t, align 8
  %7 = alloca %struct.ups_record_t, align 8
  %8 = alloca %struct.Timer.4, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %5) #4
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %6) #4
  call void @_ZNK15ParserGenerator12generate_keyEPKcPc(ptr dead_on_unwind nonnull writable sret(%struct.ups_key_t) align 8 %6, ptr noundef nonnull align 8 dereferenceable(1040) %0, ptr noundef %1, ptr noundef nonnull %5)
  call void @llvm.lifetime.start.p0(i64 24, ptr nonnull %7) #4
  call void @_ZN15ParserGenerator15generate_recordEPKc(ptr dead_on_unwind nonnull writable sret(%struct.ups_record_t) align 8 %7, ptr noundef nonnull align 8 dereferenceable(1040) %0, ptr noundef %2)
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #4
  call void @_ZN5TimerIN5boost6chrono12steady_clockEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %9 = getelementptr inbounds i8, ptr %0, i64 104
  %10 = load ptr, ptr %9, align 8, !tbaa !5
  %.not = icmp eq ptr %10, null
  %11 = getelementptr inbounds i8, ptr %0, i64 24
  %12 = load ptr, ptr %11, align 8, !tbaa !28
  br i1 %.not, label %15, label %13

13:                                               ; preds = %4
  %14 = call noundef i32 @_ZN8Database13cursor_insertEPmP9ups_key_tP12ups_record_t(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef nonnull %10, ptr noundef nonnull %6, ptr noundef nonnull %7)
  br label %19

15:                                               ; preds = %4
  %16 = getelementptr inbounds i8, ptr %0, i64 96
  %17 = load ptr, ptr %16, align 8, !tbaa !29
  %18 = call noundef i32 @_ZN8Database6insertEPmP9ups_key_tP12ups_record_t(ptr noundef nonnull align 8 dereferenceable(24) %12, ptr noundef %17, ptr noundef nonnull %6, ptr noundef nonnull %7)
  br label %19

19:                                               ; preds = %15, %13
  %.sink = phi i32 [ %18, %15 ], [ %14, %13 ]
  %20 = getelementptr inbounds i8, ptr %0, i64 32
  store i32 %.sink, ptr %20, align 8
  %21 = call noundef double @_ZNK5TimerIN5boost6chrono12steady_clockEE7secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %22 = getelementptr inbounds i8, ptr %0, i64 200
  %23 = load double, ptr %22, align 8, !tbaa !30
  %24 = fcmp ogt double %23, %21
  br i1 %24, label %25, label %26

25:                                               ; preds = %19
  store double %21, ptr %22, align 8, !tbaa !30
  br label %26

26:                                               ; preds = %25, %19
  %27 = getelementptr inbounds i8, ptr %0, i64 208
  %28 = load double, ptr %27, align 8, !tbaa !31
  %29 = fcmp olt double %28, %21
  br i1 %29, label %30, label %31

30:                                               ; preds = %26
  store double %21, ptr %27, align 8, !tbaa !31
  br label %31

31:                                               ; preds = %30, %26
  %32 = getelementptr inbounds i8, ptr %0, i64 216
  %33 = load double, ptr %32, align 8, !tbaa !32
  %34 = fadd double %21, %33
  store double %34, ptr %32, align 8, !tbaa !32
  %35 = load i32, ptr %20, align 8, !tbaa !33
  switch i32 %35, label %36 [
    i32 0, label %38
    i32 -12, label %56
  ]

36:                                               ; preds = %31
  %37 = getelementptr inbounds i8, ptr %0, i64 120
  store i8 0, ptr %37, align 8, !tbaa !34
  br label %56

38:                                               ; preds = %31
  %39 = load i16, ptr %6, align 8, !tbaa !35
  %40 = zext i16 %39 to i32
  %41 = load i32, ptr %7, align 8, !tbaa !37
  %42 = add i32 %41, %40
  %43 = zext i32 %42 to i64
  %44 = getelementptr inbounds i8, ptr %0, i64 176
  %45 = load i64, ptr %44, align 8, !tbaa !38
  %46 = add i64 %45, %43
  store i64 %46, ptr %44, align 8, !tbaa !38
  %47 = getelementptr inbounds i8, ptr %0, i64 112
  %48 = load ptr, ptr %47, align 8, !tbaa !39
  %.not13 = icmp eq ptr %48, null
  br i1 %.not13, label %56, label %49

49:                                               ; preds = %38
  %50 = getelementptr inbounds i8, ptr %0, i64 16
  %51 = load ptr, ptr %50, align 8, !tbaa !40
  %52 = getelementptr inbounds i8, ptr %51, i64 96
  %53 = load i64, ptr %52, align 8, !tbaa !41
  %.not14 = icmp eq i64 %53, 0
  br i1 %.not14, label %56, label %54

54:                                               ; preds = %49
  %55 = call noundef i64 @_ZN5boost16progress_displaypLEm(ptr noundef nonnull align 8 dereferenceable(132) %48, i64 noundef %43)
  br label %56

56:                                               ; preds = %36, %31, %38, %49, %54
  %57 = getelementptr inbounds i8, ptr %0, i64 136
  %58 = load i64, ptr %57, align 8, !tbaa !45
  %59 = add i64 %58, 1
  store i64 %59, ptr %57, align 8, !tbaa !45
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %7) #4
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %6) #4
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %5) #4
  ret void
}

; 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 nounwind uwtable
declare dso_local void @_ZNK15ParserGenerator12generate_keyEPKcPc(ptr dead_on_unwind noalias writable sret(%struct.ups_key_t) align 8, ptr noundef nonnull align 8 dereferenceable(1040), ptr noundef, ptr noundef) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN15ParserGenerator15generate_recordEPKc(ptr dead_on_unwind noalias writable sret(%struct.ups_record_t) align 8, ptr noundef nonnull align 8 dereferenceable(1040), ptr noundef) local_unnamed_addr #2 align 2

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

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

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

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

attributes #0 = { mustprogress 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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !11, i64 104}
!6 = !{!"_ZTS15ParserGenerator", !7, i64 0, !11, i64 96, !11, i64 104, !11, i64 112, !13, i64 120, !14, i64 128, !21, i64 960, !8, i64 984, !25, i64 992, !8, i64 1000, !11, i64 1008, !21, i64 1016}
!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 = !{!"_ZTS7Metrics", !11, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !15, i64 32, !15, i64 40, !15, i64 48, !15, i64 56, !16, i64 64, !16, i64 72, !16, i64 80, !16, i64 88, !16, i64 96, !16, i64 104, !16, i64 112, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !17, i64 168}
!15 = !{!"long", !9, i64 0}
!16 = !{!"double", !9, i64 0}
!17 = !{!"_ZTS17ups_env_metrics_t", !18, 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, !19, i64 224, !19, i64 440, !8, i64 656}
!18 = !{!"short", !9, i64 0}
!19 = !{!"_ZTS15btree_metrics_t", !18, i64 0, !15, i64 8, !15, i64 16, !15, i64 24, !8, i64 32, !20, i64 36, !20, i64 56, !20, i64 76, !20, i64 96, !20, i64 116, !20, i64 136, !20, i64 156, !20, i64 176, !20, i64 196}
!20 = !{!"_ZTS17min_max_avg_u32_t", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16}
!21 = !{!"_ZTSSt6vectorINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseINSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEESaIS5_EE17_Vector_impl_dataE", !11, i64 0, !11, i64 8, !11, i64 16}
!25 = !{!"_ZTS5TimerIN5boost6chrono12system_clockEE", !26, i64 0}
!26 = !{!"_ZTSN5boost6chrono10time_pointINS0_12system_clockENS0_8durationIlNS_5ratioILl1ELl1000000000EEEEEEE", !27, i64 0}
!27 = !{!"_ZTSN5boost6chrono8durationIlNS_5ratioILl1ELl1000000000EEEEE", !15, i64 0}
!28 = !{!7, !11, i64 24}
!29 = !{!6, !11, i64 96}
!30 = !{!6, !16, i64 200}
!31 = !{!6, !16, i64 208}
!32 = !{!6, !16, i64 216}
!33 = !{!7, !8, i64 32}
!34 = !{!6, !13, i64 120}
!35 = !{!36, !18, i64 0}
!36 = !{!"_ZTS9ups_key_t", !18, i64 0, !11, i64 8, !8, i64 16, !8, i64 20}
!37 = !{!12, !8, i64 0}
!38 = !{!6, !15, i64 176}
!39 = !{!6, !11, i64 112}
!40 = !{!7, !11, i64 16}
!41 = !{!42, !15, i64 96}
!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, !15, i64 72, !15, i64 80, !15, i64 88, !15, 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, !15, i64 8, !9, i64 16}
!44 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !11, i64 0}
!45 = !{!6, !15, i64 136}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass