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

; 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] }>

; 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
define dso_local void @_ZN15ParserGenerator4findEPKc(ptr noundef nonnull align 8 dereferenceable(1040) %0, ptr noundef %1) #2 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %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
  %9 = alloca double, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %10 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 64, ptr %5) #5
  call void @llvm.lifetime.start.p0(i64 24, ptr %6) #5
  %11 = load ptr, ptr %4, align 8, !tbaa !5
  %12 = getelementptr inbounds [64 x i8], ptr %5, i64 0, i64 0
  call void @_ZNK15ParserGenerator12generate_keyEPKcPc(ptr dead_on_unwind writable sret(%struct.ups_key_t) align 8 %6, ptr noundef nonnull align 8 dereferenceable(1040) %10, ptr noundef %11, ptr noundef %12)
  call void @llvm.lifetime.start.p0(i64 24, ptr %7) #5
  call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 24, i1 false)
  call void @llvm.memset.p0.i64(ptr align 8 %7, i8 0, i64 24, i1 false)
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  call void @_ZN5TimerIN5boost6chrono12steady_clockEEC2Ev(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %13 = getelementptr inbounds %class.ParserGenerator, ptr %10, i32 0, i32 2
  %14 = load ptr, ptr %13, align 8, !tbaa !9
  %15 = icmp ne ptr %14, null
  br i1 %15, label %16, label %23

16:                                               ; preds = %2
  %17 = getelementptr inbounds %class.Generator, ptr %10, i32 0, i32 4
  %18 = load ptr, ptr %17, align 8, !tbaa !29
  %19 = getelementptr inbounds %class.ParserGenerator, ptr %10, i32 0, i32 2
  %20 = load ptr, ptr %19, align 8, !tbaa !9
  %21 = call noundef i32 @_ZN8Database11cursor_findEPmP9ups_key_tP12ups_record_t(ptr noundef nonnull align 8 dereferenceable(24) %18, ptr noundef %20, ptr noundef %6, ptr noundef %7)
  %22 = getelementptr inbounds %class.Generator, ptr %10, i32 0, i32 5
  store i32 %21, ptr %22, align 8, !tbaa !30
  br label %30

23:                                               ; preds = %2
  %24 = getelementptr inbounds %class.Generator, ptr %10, i32 0, i32 4
  %25 = load ptr, ptr %24, align 8, !tbaa !29
  %26 = getelementptr inbounds %class.ParserGenerator, ptr %10, i32 0, i32 1
  %27 = load ptr, ptr %26, align 8, !tbaa !31
  %28 = call noundef i32 @_ZN8Database4findEPmP9ups_key_tP12ups_record_t(ptr noundef nonnull align 8 dereferenceable(24) %25, ptr noundef %27, ptr noundef %6, ptr noundef %7)
  %29 = getelementptr inbounds %class.Generator, ptr %10, i32 0, i32 5
  store i32 %28, ptr %29, align 8, !tbaa !30
  br label %30

30:                                               ; preds = %23, %16
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %31 = call noundef double @_ZNK5TimerIN5boost6chrono12steady_clockEE7secondsEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  store double %31, ptr %9, align 8, !tbaa !32
  %32 = getelementptr inbounds %class.ParserGenerator, ptr %10, i32 0, i32 5
  %33 = getelementptr inbounds %struct.Metrics, ptr %32, i32 0, i32 15
  %34 = load double, ptr %33, align 8, !tbaa !33
  %35 = load double, ptr %9, align 8, !tbaa !32
  %36 = fcmp ogt double %34, %35
  br i1 %36, label %37, label %41

37:                                               ; preds = %30
  %38 = load double, ptr %9, align 8, !tbaa !32
  %39 = getelementptr inbounds %class.ParserGenerator, ptr %10, i32 0, i32 5
  %40 = getelementptr inbounds %struct.Metrics, ptr %39, i32 0, i32 15
  store double %38, ptr %40, align 8, !tbaa !33
  br label %41

41:                                               ; preds = %37, %30
  %42 = getelementptr inbounds %class.ParserGenerator, ptr %10, i32 0, i32 5
  %43 = getelementptr inbounds %struct.Metrics, ptr %42, i32 0, i32 16
  %44 = load double, ptr %43, align 8, !tbaa !34
  %45 = load double, ptr %9, align 8, !tbaa !32
  %46 = fcmp olt double %44, %45
  br i1 %46, label %47, label %51

47:                                               ; preds = %41
  %48 = load double, ptr %9, align 8, !tbaa !32
  %49 = getelementptr inbounds %class.ParserGenerator, ptr %10, i32 0, i32 5
  %50 = getelementptr inbounds %struct.Metrics, ptr %49, i32 0, i32 16
  store double %48, ptr %50, align 8, !tbaa !34
  br label %51

51:                                               ; preds = %47, %41
  %52 = load double, ptr %9, align 8, !tbaa !32
  %53 = getelementptr inbounds %class.ParserGenerator, ptr %10, i32 0, i32 5
  %54 = getelementptr inbounds %struct.Metrics, ptr %53, i32 0, i32 17
  %55 = load double, ptr %54, align 8, !tbaa !35
  %56 = fadd double %55, %52
  store double %56, ptr %54, align 8, !tbaa !35
  %57 = getelementptr inbounds %class.Generator, ptr %10, i32 0, i32 5
  %58 = load i32, ptr %57, align 8, !tbaa !30
  %59 = icmp ne i32 %58, 0
  br i1 %59, label %60, label %66

60:                                               ; preds = %51
  %61 = getelementptr inbounds %class.Generator, ptr %10, i32 0, i32 5
  %62 = load i32, ptr %61, align 8, !tbaa !30
  %63 = icmp ne i32 %62, -11
  br i1 %63, label %64, label %66

64:                                               ; preds = %60
  %65 = getelementptr inbounds %class.ParserGenerator, ptr %10, i32 0, i32 4
  store i8 0, ptr %65, align 8, !tbaa !36
  br label %66

66:                                               ; preds = %64, %60, %51
  %67 = getelementptr inbounds %struct.ups_record_t, ptr %7, i32 0, i32 0
  %68 = load i32, ptr %67, align 8, !tbaa !37
  %69 = zext i32 %68 to i64
  %70 = getelementptr inbounds %class.ParserGenerator, ptr %10, i32 0, i32 5
  %71 = getelementptr inbounds %struct.Metrics, ptr %70, i32 0, i32 7
  %72 = load i64, ptr %71, align 8, !tbaa !38
  %73 = add i64 %72, %69
  store i64 %73, ptr %71, align 8, !tbaa !38
  %74 = getelementptr inbounds %class.ParserGenerator, ptr %10, i32 0, i32 5
  %75 = getelementptr inbounds %struct.Metrics, ptr %74, i32 0, i32 3
  %76 = load i64, ptr %75, align 8, !tbaa !39
  %77 = add i64 %76, 1
  store i64 %77, ptr %75, align 8, !tbaa !39
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr %5) #5
  ret void
}

; 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) #3 align 2

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

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

declare noundef i32 @_ZN8Database11cursor_findEPmP9ups_key_tP12ups_record_t(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef) #4

declare noundef i32 @_ZN8Database4findEPmP9ups_key_tP12ups_record_t(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef) #4

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 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 248}
!34 = !{!10, !17, i64 256}
!35 = !{!10, !17, i64 264}
!36 = !{!10, !14, i64 120}
!37 = !{!13, !12, i64 0}
!38 = !{!10, !16, i64 184}
!39 = !{!10, !16, i64 152}


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

11:                                               ; preds = %2
  %12 = call noundef i32 @_ZN8Database11cursor_findEPmP9ups_key_tP12ups_record_t(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef nonnull %8, ptr noundef nonnull %4, ptr noundef nonnull %5)
  br label %17

13:                                               ; preds = %2
  %14 = getelementptr inbounds i8, ptr %0, i64 96
  %15 = load ptr, ptr %14, align 8, !tbaa !29
  %16 = call noundef i32 @_ZN8Database4findEPmP9ups_key_tP12ups_record_t(ptr noundef nonnull align 8 dereferenceable(24) %10, ptr noundef %15, ptr noundef nonnull %4, ptr noundef nonnull %5)
  br label %17

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

23:                                               ; preds = %17
  store double %19, ptr %20, align 8, !tbaa !30
  br label %24

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

28:                                               ; preds = %24
  store double %19, ptr %25, align 8, !tbaa !31
  br label %29

29:                                               ; preds = %28, %24
  %30 = getelementptr inbounds i8, ptr %0, i64 264
  %31 = load double, ptr %30, align 8, !tbaa !32
  %32 = fadd double %19, %31
  store double %32, ptr %30, align 8, !tbaa !32
  %33 = load i32, ptr %18, align 8, !tbaa !33
  switch i32 %33, label %34 [
    i32 0, label %36
    i32 -11, label %36
  ]

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

36:                                               ; preds = %29, %29, %34
  %37 = load i32, ptr %5, align 8, !tbaa !35
  %38 = zext i32 %37 to i64
  %39 = getelementptr inbounds i8, ptr %0, i64 184
  %40 = load i64, ptr %39, align 8, !tbaa !36
  %41 = add i64 %40, %38
  store i64 %41, ptr %39, align 8, !tbaa !36
  %42 = getelementptr inbounds i8, ptr %0, i64 152
  %43 = load i64, ptr %42, align 8, !tbaa !37
  %44 = add i64 %43, 1
  store i64 %44, ptr %42, align 8, !tbaa !37
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %5) #5
  call void @llvm.lifetime.end.p0(i64 24, ptr nonnull %4) #5
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %3) #5
  ret void
}

; 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 #3 align 2

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

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

declare noundef i32 @_ZN8Database11cursor_findEPmP9ups_key_tP12ups_record_t(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

declare noundef i32 @_ZN8Database4findEPmP9ups_key_tP12ups_record_t(ptr noundef nonnull align 8 dereferenceable(24), ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress 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 = { 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 #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 248}
!31 = !{!6, !16, i64 256}
!32 = !{!6, !16, i64 264}
!33 = !{!7, !8, i64 32}
!34 = !{!6, !13, i64 120}
!35 = !{!12, !8, i64 0}
!36 = !{!6, !15, i64 184}
!37 = !{!6, !15, i64 152}


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