; LLVM IR from mitdbg/deneva :: benchmarks/tpcc_query.ll (ZN9TPCCQuery12participantsERPbP8Workload)

; 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.TPCCQuery = type { %class.BaseQuery, i32, i64, i64, i64, i64, i64, i64, [16 x i8], double, i8, %class.Array.0, i8, i8, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64, i64 }
%class.BaseQuery = type { ptr, i64, %class.Array, %class.Array, %class.Array, %class.Array }
%class.Array = type { ptr, i64, i64 }
%class.Array.0 = type { ptr, i64, i64 }
%struct.Item_no = type { i64, i64, i64 }

@g_node_cnt = external global i32, align 4
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [73 x i8], align 1
@__PRETTY_FUNCTION__._ZN9TPCCQuery12participantsERPbP8Workload = external hidden unnamed_addr constant [54 x i8], align 1

; 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 nounwind uwtable
declare dso_local noundef ptr @_ZN5ArrayIP7Item_noEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #1 align 2

declare noundef i64 @_Z10wh_to_partm(i64 noundef) #2

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef i64 @_ZN9TPCCQuery12participantsERPbP8Workload(ptr noundef nonnull align 8 dereferenceable(320) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef %2) #4 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %12 = load ptr, ptr %4, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  store i64 0, ptr %8, align 8, !tbaa !11
  br label %13

13:                                               ; preds = %24, %3
  %14 = load i64, ptr %8, align 8, !tbaa !11
  %15 = load i32, ptr @g_node_cnt, align 4, !tbaa !9
  %16 = zext i32 %15 to i64
  %17 = icmp ult i64 %14, %16
  br i1 %17, label %19, label %18

18:                                               ; preds = %13
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %27

19:                                               ; preds = %13
  %20 = load ptr, ptr %5, align 8, !tbaa !5
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  %22 = load i64, ptr %8, align 8, !tbaa !11
  %23 = getelementptr inbounds i8, ptr %21, i64 %22
  store i8 0, ptr %23, align 1, !tbaa !13
  br label %24

24:                                               ; preds = %19
  %25 = load i64, ptr %8, align 8, !tbaa !11
  %26 = add i64 %25, 1
  store i64 %26, ptr %8, align 8, !tbaa !11
  br label %13, !llvm.loop !15

27:                                               ; preds = %18
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #5
  %28 = getelementptr inbounds %class.TPCCQuery, ptr %12, i32 0, i32 1
  %29 = load i32, ptr %28, align 8, !tbaa !17
  switch i32 %29, label %126 [
    i32 1, label %30
    i32 2, label %71
  ]

30:                                               ; preds = %27
  %31 = getelementptr inbounds %class.TPCCQuery, ptr %12, i32 0, i32 2
  %32 = load i64, ptr %31, align 8, !tbaa !24
  %33 = call noundef i64 @_Z10wh_to_partm(i64 noundef %32)
  %34 = load i32, ptr @g_node_cnt, align 4, !tbaa !9
  %35 = zext i32 %34 to i64
  %36 = urem i64 %33, %35
  store i64 %36, ptr %9, align 8, !tbaa !11
  %37 = load ptr, ptr %5, align 8, !tbaa !5
  %38 = load ptr, ptr %37, align 8, !tbaa !5
  %39 = load i64, ptr %9, align 8, !tbaa !11
  %40 = getelementptr inbounds i8, ptr %38, i64 %39
  %41 = load i8, ptr %40, align 1, !tbaa !13, !range !25, !noundef !26
  %42 = trunc i8 %41 to i1
  br i1 %42, label %50, label %43

43:                                               ; preds = %30
  %44 = load ptr, ptr %5, align 8, !tbaa !5
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  %46 = load i64, ptr %9, align 8, !tbaa !11
  %47 = getelementptr inbounds i8, ptr %45, i64 %46
  store i8 1, ptr %47, align 1, !tbaa !13
  %48 = load i32, ptr %7, align 4, !tbaa !9
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %7, align 4, !tbaa !9
  br label %50

50:                                               ; preds = %43, %30
  %51 = getelementptr inbounds %class.TPCCQuery, ptr %12, i32 0, i32 6
  %52 = load i64, ptr %51, align 8, !tbaa !27
  %53 = call noundef i64 @_Z10wh_to_partm(i64 noundef %52)
  %54 = load i32, ptr @g_node_cnt, align 4, !tbaa !9
  %55 = zext i32 %54 to i64
  %56 = urem i64 %53, %55
  store i64 %56, ptr %9, align 8, !tbaa !11
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %59 = load i64, ptr %9, align 8, !tbaa !11
  %60 = getelementptr inbounds i8, ptr %58, i64 %59
  %61 = load i8, ptr %60, align 1, !tbaa !13, !range !25, !noundef !26
  %62 = trunc i8 %61 to i1
  br i1 %62, label %70, label %63

63:                                               ; preds = %50
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = load ptr, ptr %64, align 8, !tbaa !5
  %66 = load i64, ptr %9, align 8, !tbaa !11
  %67 = getelementptr inbounds i8, ptr %65, i64 %66
  store i8 1, ptr %67, align 1, !tbaa !13
  %68 = load i32, ptr %7, align 4, !tbaa !9
  %69 = add nsw i32 %68, 1
  store i32 %69, ptr %7, align 4, !tbaa !9
  br label %70

70:                                               ; preds = %63, %50
  br label %127

71:                                               ; preds = %27
  %72 = getelementptr inbounds %class.TPCCQuery, ptr %12, i32 0, i32 2
  %73 = load i64, ptr %72, align 8, !tbaa !24
  %74 = call noundef i64 @_Z10wh_to_partm(i64 noundef %73)
  %75 = load i32, ptr @g_node_cnt, align 4, !tbaa !9
  %76 = zext i32 %75 to i64
  %77 = urem i64 %74, %76
  store i64 %77, ptr %9, align 8, !tbaa !11
  %78 = load ptr, ptr %5, align 8, !tbaa !5
  %79 = load ptr, ptr %78, align 8, !tbaa !5
  %80 = load i64, ptr %9, align 8, !tbaa !11
  %81 = getelementptr inbounds i8, ptr %79, i64 %80
  %82 = load i8, ptr %81, align 1, !tbaa !13, !range !25, !noundef !26
  %83 = trunc i8 %82 to i1
  br i1 %83, label %91, label %84

84:                                               ; preds = %71
  %85 = load ptr, ptr %5, align 8, !tbaa !5
  %86 = load ptr, ptr %85, align 8, !tbaa !5
  %87 = load i64, ptr %9, align 8, !tbaa !11
  %88 = getelementptr inbounds i8, ptr %86, i64 %87
  store i8 1, ptr %88, align 1, !tbaa !13
  %89 = load i32, ptr %7, align 4, !tbaa !9
  %90 = add nsw i32 %89, 1
  store i32 %90, ptr %7, align 4, !tbaa !9
  br label %91

91:                                               ; preds = %84, %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store i64 0, ptr %10, align 8, !tbaa !11
  br label %92

92:                                               ; preds = %122, %91
  %93 = load i64, ptr %10, align 8, !tbaa !11
  %94 = getelementptr inbounds %class.TPCCQuery, ptr %12, i32 0, i32 14
  %95 = load i64, ptr %94, align 8, !tbaa !28
  %96 = icmp ult i64 %93, %95
  br i1 %96, label %98, label %97

97:                                               ; preds = %92
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %125

98:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  %99 = getelementptr inbounds %class.TPCCQuery, ptr %12, i32 0, i32 11
  %100 = load i64, ptr %10, align 8, !tbaa !11
  %101 = call noundef ptr @_ZN5ArrayIP7Item_noEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %100)
  %102 = getelementptr inbounds %struct.Item_no, ptr %101, i32 0, i32 1
  %103 = load i64, ptr %102, align 8, !tbaa !29
  %104 = call noundef i64 @_Z10wh_to_partm(i64 noundef %103)
  %105 = load i32, ptr @g_node_cnt, align 4, !tbaa !9
  %106 = zext i32 %105 to i64
  %107 = urem i64 %104, %106
  store i64 %107, ptr %11, align 8, !tbaa !11
  %108 = load ptr, ptr %5, align 8, !tbaa !5
  %109 = load ptr, ptr %108, align 8, !tbaa !5
  %110 = load i64, ptr %11, align 8, !tbaa !11
  %111 = getelementptr inbounds i8, ptr %109, i64 %110
  %112 = load i8, ptr %111, align 1, !tbaa !13, !range !25, !noundef !26
  %113 = trunc i8 %112 to i1
  br i1 %113, label %121, label %114

114:                                              ; preds = %98
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = load ptr, ptr %115, align 8, !tbaa !5
  %117 = load i64, ptr %11, align 8, !tbaa !11
  %118 = getelementptr inbounds i8, ptr %116, i64 %117
  store i8 1, ptr %118, align 1, !tbaa !13
  %119 = load i32, ptr %7, align 4, !tbaa !9
  %120 = add nsw i32 %119, 1
  store i32 %120, ptr %7, align 4, !tbaa !9
  br label %121

121:                                              ; preds = %114, %98
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %122

122:                                              ; preds = %121
  %123 = load i64, ptr %10, align 8, !tbaa !11
  %124 = add i64 %123, 1
  store i64 %124, ptr %10, align 8, !tbaa !11
  br label %92, !llvm.loop !31

125:                                              ; preds = %97
  br label %127

126:                                              ; preds = %27
  call void @__assert_fail(ptr noundef @.str.4, ptr noundef @.str.5, i32 noundef 139, ptr noundef @__PRETTY_FUNCTION__._ZN9TPCCQuery12participantsERPbP8Workload) #6
  unreachable

127:                                              ; preds = %125, %70
  %128 = load i32, ptr %7, align 4, !tbaa !9
  %129 = sext i32 %128 to i64
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  ret i64 %129
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 #2 = { "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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { noreturn 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, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"bool", !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!18, !21, i64 112}
!18 = !{!"_ZTS9TPCCQuery", !19, i64 0, !21, i64 112, !12, i64 120, !12, i64 128, !12, i64 136, !12, i64 144, !12, i64 152, !12, i64 160, !7, i64 168, !22, i64 184, !14, i64 192, !23, i64 200, !14, i64 224, !14, i64 225, !12, i64 232, !12, i64 240, !12, i64 248, !12, i64 256, !12, i64 264, !12, i64 272, !12, i64 280, !12, i64 288, !12, i64 296, !12, i64 304, !12, i64 312}
!19 = !{!"_ZTS9BaseQuery", !12, i64 8, !20, i64 16, !20, i64 40, !20, i64 64, !20, i64 88}
!20 = !{!"_ZTS5ArrayImE", !6, i64 0, !12, i64 8, !12, i64 16}
!21 = !{!"_ZTS11TPCCTxnType", !7, i64 0}
!22 = !{!"double", !7, i64 0}
!23 = !{!"_ZTS5ArrayIP7Item_noE", !6, i64 0, !12, i64 8, !12, i64 16}
!24 = !{!18, !12, i64 120}
!25 = !{i8 0, i8 2}
!26 = !{}
!27 = !{!18, !12, i64 152}
!28 = !{!18, !12, i64 232}
!29 = !{!30, !12, i64 8}
!30 = !{!"_ZTS7Item_no", !12, i64 0, !12, i64 8, !12, i64 16}
!31 = distinct !{!31, !16}


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

@g_node_cnt = external local_unnamed_addr global i32, align 4
@.str.4 = external hidden unnamed_addr constant [6 x i8], align 1
@.str.5 = external hidden unnamed_addr constant [73 x i8], align 1
@__PRETTY_FUNCTION__._ZN9TPCCQuery12participantsERPbP8Workload = external hidden unnamed_addr constant [54 x i8], align 1

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

declare noundef i64 @_Z10wh_to_partm(i64 noundef) local_unnamed_addr #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local noundef range(i64 -2147483648, 2147483648) i64 @_ZN9TPCCQuery12participantsERPbP8Workload(ptr noundef nonnull align 8 dereferenceable(320) %0, ptr nocapture noundef nonnull readonly align 8 dereferenceable(8) %1, ptr nocapture noundef readnone %2) local_unnamed_addr #3 align 2 {
  %4 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %.not = icmp eq i32 %4, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %5 = zext i32 %4 to i64
  %6 = load ptr, ptr %1, align 8, !tbaa !9
  tail call void @llvm.memset.p0.i64(ptr align 1 %6, i8 0, i64 %5, i1 false), !tbaa !11
  br label %._crit_edge

._crit_edge:                                      ; preds = %.lr.ph, %3
  %7 = getelementptr inbounds i8, ptr %0, i64 112
  %8 = load i32, ptr %7, align 8, !tbaa !13
  switch i32 %8, label %68 [
    i32 1, label %9
    i32 2, label %34
  ]

9:                                                ; preds = %._crit_edge
  %10 = getelementptr inbounds i8, ptr %0, i64 120
  %11 = load i64, ptr %10, align 8, !tbaa !21
  %12 = tail call noundef i64 @_Z10wh_to_partm(i64 noundef %11)
  %13 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %14 = zext i32 %13 to i64
  %15 = urem i64 %12, %14
  %16 = load ptr, ptr %1, align 8, !tbaa !9
  %17 = getelementptr inbounds i8, ptr %16, i64 %15
  %18 = load i8, ptr %17, align 1, !tbaa !11, !range !22, !noundef !23
  %19 = trunc nuw i8 %18 to i1
  br i1 %19, label %21, label %20

20:                                               ; preds = %9
  store i8 1, ptr %17, align 1, !tbaa !11
  br label %21

21:                                               ; preds = %20, %9
  %.0 = phi i32 [ 0, %9 ], [ 1, %20 ]
  %22 = getelementptr inbounds i8, ptr %0, i64 152
  %23 = load i64, ptr %22, align 8, !tbaa !24
  %24 = tail call noundef i64 @_Z10wh_to_partm(i64 noundef %23)
  %25 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %26 = zext i32 %25 to i64
  %27 = urem i64 %24, %26
  %28 = load ptr, ptr %1, align 8, !tbaa !9
  %29 = getelementptr inbounds i8, ptr %28, i64 %27
  %30 = load i8, ptr %29, align 1, !tbaa !11, !range !22, !noundef !23
  %31 = trunc nuw i8 %30 to i1
  br i1 %31, label %.loopexit, label %32

32:                                               ; preds = %21
  store i8 1, ptr %29, align 1, !tbaa !11
  %33 = add nuw nsw i32 %.0, 1
  br label %.loopexit

34:                                               ; preds = %._crit_edge
  %35 = getelementptr inbounds i8, ptr %0, i64 120
  %36 = load i64, ptr %35, align 8, !tbaa !21
  %37 = tail call noundef i64 @_Z10wh_to_partm(i64 noundef %36)
  %38 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %39 = zext i32 %38 to i64
  %40 = urem i64 %37, %39
  %41 = load ptr, ptr %1, align 8, !tbaa !9
  %42 = getelementptr inbounds i8, ptr %41, i64 %40
  %43 = load i8, ptr %42, align 1, !tbaa !11, !range !22, !noundef !23
  %44 = trunc nuw i8 %43 to i1
  br i1 %44, label %46, label %45

45:                                               ; preds = %34
  store i8 1, ptr %42, align 1, !tbaa !11
  br label %46

46:                                               ; preds = %45, %34
  %.1 = phi i32 [ 0, %34 ], [ 1, %45 ]
  %47 = getelementptr inbounds i8, ptr %0, i64 232
  %48 = load i64, ptr %47, align 8, !tbaa !25
  %.not35 = icmp eq i64 %48, 0
  br i1 %.not35, label %.loopexit, label %.lr.ph34

.lr.ph34:                                         ; preds = %46
  %49 = getelementptr inbounds i8, ptr %0, i64 200
  br label %50

50:                                               ; preds = %.lr.ph34, %64
  %.232 = phi i32 [ %.1, %.lr.ph34 ], [ %.3, %64 ]
  %.02831 = phi i64 [ 0, %.lr.ph34 ], [ %65, %64 ]
  %51 = tail call noundef ptr @_ZN5ArrayIP7Item_noEixEm(ptr noundef nonnull align 8 dereferenceable(24) %49, i64 noundef %.02831)
  %52 = getelementptr inbounds i8, ptr %51, i64 8
  %53 = load i64, ptr %52, align 8, !tbaa !26
  %54 = tail call noundef i64 @_Z10wh_to_partm(i64 noundef %53)
  %55 = load i32, ptr @g_node_cnt, align 4, !tbaa !5
  %56 = zext i32 %55 to i64
  %57 = urem i64 %54, %56
  %58 = load ptr, ptr %1, align 8, !tbaa !9
  %59 = getelementptr inbounds i8, ptr %58, i64 %57
  %60 = load i8, ptr %59, align 1, !tbaa !11, !range !22, !noundef !23
  %61 = trunc nuw i8 %60 to i1
  br i1 %61, label %64, label %62

62:                                               ; preds = %50
  store i8 1, ptr %59, align 1, !tbaa !11
  %63 = add nsw i32 %.232, 1
  br label %64

64:                                               ; preds = %62, %50
  %.3 = phi i32 [ %.232, %50 ], [ %63, %62 ]
  %65 = add nuw i64 %.02831, 1
  %66 = load i64, ptr %47, align 8, !tbaa !25
  %67 = icmp ult i64 %65, %66
  br i1 %67, label %50, label %.loopexit, !llvm.loop !28

68:                                               ; preds = %._crit_edge
  tail call void @__assert_fail(ptr noundef nonnull @.str.4, ptr noundef nonnull @.str.5, i32 noundef 139, ptr noundef nonnull @__PRETTY_FUNCTION__._ZN9TPCCQuery12participantsERPbP8Workload) #5
  unreachable

.loopexit:                                        ; preds = %64, %46, %21, %32
  %.4 = phi i32 [ %.0, %21 ], [ %33, %32 ], [ %.1, %46 ], [ %.3, %64 ]
  %69 = sext i32 %.4 to i64
  ret i64 %69
}

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #4

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { "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 = { noreturn nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #5 = { noreturn 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 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!14, !18, i64 112}
!14 = !{!"_ZTS9TPCCQuery", !15, i64 0, !18, i64 112, !16, i64 120, !16, i64 128, !16, i64 136, !16, i64 144, !16, i64 152, !16, i64 160, !7, i64 168, !19, i64 184, !12, i64 192, !20, i64 200, !12, i64 224, !12, i64 225, !16, i64 232, !16, i64 240, !16, i64 248, !16, i64 256, !16, i64 264, !16, i64 272, !16, i64 280, !16, i64 288, !16, i64 296, !16, i64 304, !16, i64 312}
!15 = !{!"_ZTS9BaseQuery", !16, i64 8, !17, i64 16, !17, i64 40, !17, i64 64, !17, i64 88}
!16 = !{!"long", !7, i64 0}
!17 = !{!"_ZTS5ArrayImE", !10, i64 0, !16, i64 8, !16, i64 16}
!18 = !{!"_ZTS11TPCCTxnType", !7, i64 0}
!19 = !{!"double", !7, i64 0}
!20 = !{!"_ZTS5ArrayIP7Item_noE", !10, i64 0, !16, i64 8, !16, i64 16}
!21 = !{!14, !16, i64 120}
!22 = !{i8 0, i8 2}
!23 = !{}
!24 = !{!14, !16, i64 152}
!25 = !{!14, !16, i64 232}
!26 = !{!27, !16, i64 8}
!27 = !{!"_ZTS7Item_no", !16, i64 0, !16, i64 8, !16, i64 16}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass