; LLVM IR from mlcommons/tiny :: benchmark/interface/Middlewares/ST/threadx/common/src/tx_thread_priority_chang_2d6d5de8 (change)

; 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.TX_THREAD_STRUCT = type { i64, i64, ptr, ptr, ptr, i64, i64, i64, ptr, ptr, ptr, i32, i32, i32, i32, i32, ptr, ptr, i64, %struct.TX_TIMER_INTERNAL_STRUCT, ptr, ptr, ptr, ptr, i64, ptr, i32, i32, ptr, ptr, ptr, ptr, i32, i32, i32, i32, ptr, ptr, ptr, i64 }
%struct.TX_TIMER_INTERNAL_STRUCT = type { i64, i64, ptr, i64, ptr, ptr, ptr }

@_tx_thread_execute_ptr = external global ptr, align 8
@_tx_thread_preempt_disable = external global i32, align 4
@_tx_thread_priority_list = external global [32 x ptr], align 16

; Function Attrs: nounwind uwtable
define dso_local i32 @_tx_thread_priority_change(ptr noundef %0, i32 noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store i32 %1, ptr %5, align 4, !tbaa !9
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %11 = call i32 @__disable_interrupts()
  store i32 %11, ptr %7, align 4, !tbaa !9
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %12, i32 0, i32 32
  %14 = load i32, ptr %13, align 8, !tbaa !11
  %15 = load ptr, ptr %6, align 8, !tbaa !5
  store i32 %14, ptr %15, align 4, !tbaa !9
  %16 = load ptr, ptr %4, align 8, !tbaa !5
  %17 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %16, i32 0, i32 12
  %18 = load i32, ptr %17, align 4, !tbaa !15
  %19 = icmp ne i32 %18, 0
  br i1 %19, label %20, label %52

20:                                               ; preds = %3
  %21 = load i32, ptr %5, align 4, !tbaa !9
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %22, i32 0, i32 32
  store i32 %21, ptr %23, align 8, !tbaa !11
  %24 = load i32, ptr %5, align 4, !tbaa !9
  %25 = load ptr, ptr %4, align 8, !tbaa !5
  %26 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %25, i32 0, i32 33
  store i32 %24, ptr %26, align 4, !tbaa !16
  %27 = load i32, ptr %5, align 4, !tbaa !9
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %28, i32 0, i32 34
  %30 = load i32, ptr %29, align 8, !tbaa !17
  %31 = icmp ult i32 %27, %30
  br i1 %31, label %32, label %39

32:                                               ; preds = %20
  %33 = load i32, ptr %5, align 4, !tbaa !9
  %34 = load ptr, ptr %4, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %34, i32 0, i32 11
  store i32 %33, ptr %35, align 8, !tbaa !18
  %36 = load i32, ptr %5, align 4, !tbaa !9
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %37, i32 0, i32 15
  store i32 %36, ptr %38, align 8, !tbaa !19
  br label %50

39:                                               ; preds = %20
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %40, i32 0, i32 34
  %42 = load i32, ptr %41, align 8, !tbaa !17
  %43 = load ptr, ptr %4, align 8, !tbaa !5
  %44 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %43, i32 0, i32 11
  store i32 %42, ptr %44, align 8, !tbaa !18
  %45 = load ptr, ptr %4, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %45, i32 0, i32 34
  %47 = load i32, ptr %46, align 8, !tbaa !17
  %48 = load ptr, ptr %4, align 8, !tbaa !5
  %49 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %48, i32 0, i32 15
  store i32 %47, ptr %49, align 8, !tbaa !19
  br label %50

50:                                               ; preds = %39, %32
  %51 = load i32, ptr %7, align 4, !tbaa !9
  call void @__restore_interrupt(i32 noundef %51)
  br label %141

52:                                               ; preds = %3
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %53, i32 0, i32 12
  store i32 14, ptr %54, align 4, !tbaa !15
  %55 = load ptr, ptr @_tx_thread_execute_ptr, align 8, !tbaa !5
  store ptr %55, ptr %8, align 8, !tbaa !5
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %56, i32 0, i32 11
  %58 = load i32, ptr %57, align 8, !tbaa !18
  store i32 %58, ptr %10, align 4, !tbaa !9
  %59 = load volatile i32, ptr @_tx_thread_preempt_disable, align 4, !tbaa !9
  %60 = add i32 %59, 3
  store volatile i32 %60, ptr @_tx_thread_preempt_disable, align 4, !tbaa !9
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %61, i32 0, i32 14
  store i32 1, ptr %62, align 4, !tbaa !20
  %63 = load ptr, ptr %4, align 8, !tbaa !5
  %64 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %63, i32 0, i32 19
  %65 = getelementptr inbounds %struct.TX_TIMER_INTERNAL_STRUCT, ptr %64, i32 0, i32 0
  store i64 0, ptr %65, align 8, !tbaa !21
  %66 = load i32, ptr %7, align 4, !tbaa !9
  call void @__restore_interrupt(i32 noundef %66)
  %67 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_tx_thread_system_suspend(ptr noundef %67)
  %68 = load i32, ptr %5, align 4, !tbaa !9
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %69, i32 0, i32 32
  store i32 %68, ptr %70, align 8, !tbaa !11
  %71 = load i32, ptr %5, align 4, !tbaa !9
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %72, i32 0, i32 33
  store i32 %71, ptr %73, align 4, !tbaa !16
  %74 = load i32, ptr %5, align 4, !tbaa !9
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %75, i32 0, i32 34
  %77 = load i32, ptr %76, align 8, !tbaa !17
  %78 = icmp ult i32 %74, %77
  br i1 %78, label %79, label %86

79:                                               ; preds = %52
  %80 = load i32, ptr %5, align 4, !tbaa !9
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %81, i32 0, i32 11
  store i32 %80, ptr %82, align 8, !tbaa !18
  %83 = load i32, ptr %5, align 4, !tbaa !9
  %84 = load ptr, ptr %4, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %84, i32 0, i32 15
  store i32 %83, ptr %85, align 8, !tbaa !19
  br label %97

86:                                               ; preds = %52
  %87 = load ptr, ptr %4, align 8, !tbaa !5
  %88 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %87, i32 0, i32 34
  %89 = load i32, ptr %88, align 8, !tbaa !17
  %90 = load ptr, ptr %4, align 8, !tbaa !5
  %91 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %90, i32 0, i32 11
  store i32 %89, ptr %91, align 8, !tbaa !18
  %92 = load ptr, ptr %4, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %92, i32 0, i32 34
  %94 = load i32, ptr %93, align 8, !tbaa !17
  %95 = load ptr, ptr %4, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %95, i32 0, i32 15
  store i32 %94, ptr %96, align 8, !tbaa !19
  br label %97

97:                                               ; preds = %86, %79
  %98 = load ptr, ptr %4, align 8, !tbaa !5
  call void @_tx_thread_system_resume(ptr noundef %98)
  %99 = call i32 @__disable_interrupts()
  store i32 %99, ptr %7, align 4, !tbaa !9
  %100 = load volatile i32, ptr @_tx_thread_preempt_disable, align 4, !tbaa !9
  %101 = add i32 %100, -1
  store volatile i32 %101, ptr @_tx_thread_preempt_disable, align 4, !tbaa !9
  %102 = load ptr, ptr @_tx_thread_execute_ptr, align 8, !tbaa !5
  store ptr %102, ptr %9, align 8, !tbaa !5
  %103 = load ptr, ptr %4, align 8, !tbaa !5
  %104 = load ptr, ptr %9, align 8, !tbaa !5
  %105 = icmp ne ptr %103, %104
  br i1 %105, label %106, label %139

106:                                              ; preds = %97
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %107, i32 0, i32 12
  %109 = load i32, ptr %108, align 4, !tbaa !15
  %110 = icmp eq i32 %109, 0
  br i1 %110, label %111, label %138

111:                                              ; preds = %106
  %112 = load ptr, ptr %4, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %112, i32 0, i32 11
  %114 = load i32, ptr %113, align 8, !tbaa !18
  %115 = load ptr, ptr %9, align 8, !tbaa !5
  %116 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %115, i32 0, i32 11
  %117 = load i32, ptr %116, align 8, !tbaa !18
  %118 = icmp ule i32 %114, %117
  br i1 %118, label %119, label %137

119:                                              ; preds = %111
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = load ptr, ptr %8, align 8, !tbaa !5
  %122 = icmp eq ptr %120, %121
  br i1 %122, label %123, label %136

123:                                              ; preds = %119
  %124 = load ptr, ptr %4, align 8, !tbaa !5
  store ptr %124, ptr @_tx_thread_execute_ptr, align 8, !tbaa !5
  %125 = load i32, ptr %10, align 4, !tbaa !9
  %126 = load i32, ptr %5, align 4, !tbaa !9
  %127 = icmp ult i32 %125, %126
  br i1 %127, label %128, label %135

128:                                              ; preds = %123
  %129 = load ptr, ptr %4, align 8, !tbaa !5
  %130 = load ptr, ptr %4, align 8, !tbaa !5
  %131 = getelementptr inbounds %struct.TX_THREAD_STRUCT, ptr %130, i32 0, i32 11
  %132 = load i32, ptr %131, align 8, !tbaa !18
  %133 = zext i32 %132 to i64
  %134 = getelementptr inbounds [32 x ptr], ptr @_tx_thread_priority_list, i64 0, i64 %133
  store ptr %129, ptr %134, align 8, !tbaa !5
  br label %135

135:                                              ; preds = %128, %123
  br label %136

136:                                              ; preds = %135, %119
  br label %137

137:                                              ; preds = %136, %111
  br label %138

138:                                              ; preds = %137, %106
  br label %139

139:                                              ; preds = %138, %97
  %140 = load i32, ptr %7, align 4, !tbaa !9
  call void @__restore_interrupt(i32 noundef %140)
  call void @_tx_thread_system_preempt_check()
  br label %141

141:                                              ; preds = %139, %50
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret i32 0
}

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

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @__disable_interrupts() #2

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @__restore_interrupt(i32 noundef) #2

declare void @_tx_thread_system_suspend(ptr noundef) #3

declare void @_tx_thread_system_resume(ptr noundef) #3

declare void @_tx_thread_system_preempt_check() #3

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

attributes #0 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { alwaysinline 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 280}
!12 = !{!"TX_THREAD_STRUCT", !13, i64 0, !13, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !13, i64 40, !13, i64 48, !13, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !6, i64 112, !6, i64 120, !13, i64 128, !14, i64 136, !6, i64 192, !6, i64 200, !6, i64 208, !6, i64 216, !13, i64 224, !6, i64 232, !10, i64 240, !10, i64 244, !6, i64 248, !6, i64 256, !6, i64 264, !6, i64 272, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !6, i64 296, !6, i64 304, !6, i64 312, !13, i64 320}
!13 = !{!"long", !7, i64 0}
!14 = !{!"TX_TIMER_INTERNAL_STRUCT", !13, i64 0, !13, i64 8, !6, i64 16, !13, i64 24, !6, i64 32, !6, i64 40, !6, i64 48}
!15 = !{!12, !10, i64 92}
!16 = !{!12, !10, i64 284}
!17 = !{!12, !10, i64 288}
!18 = !{!12, !10, i64 88}
!19 = !{!12, !10, i64 104}
!20 = !{!12, !10, i64 100}
!21 = !{!12, !13, 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"

@_tx_thread_execute_ptr = external local_unnamed_addr global ptr, align 8
@_tx_thread_preempt_disable = external global i32, align 4
@_tx_thread_priority_list = external local_unnamed_addr global [32 x ptr], align 16

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @_tx_thread_priority_change(ptr noundef %0, i32 noundef %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #0 {
  %4 = tail call i32 @__disable_interrupts()
  %5 = getelementptr inbounds i8, ptr %0, i64 280
  %6 = load i32, ptr %5, align 8, !tbaa !5
  store i32 %6, ptr %2, align 4, !tbaa !13
  %7 = getelementptr inbounds i8, ptr %0, i64 92
  %8 = load i32, ptr %7, align 4, !tbaa !14
  %.not = icmp eq i32 %8, 0
  br i1 %.not, label %15, label %9

9:                                                ; preds = %3
  store i32 %1, ptr %5, align 8, !tbaa !5
  %10 = getelementptr inbounds i8, ptr %0, i64 284
  store i32 %1, ptr %10, align 4, !tbaa !15
  %11 = getelementptr inbounds i8, ptr %0, i64 288
  %12 = load i32, ptr %11, align 8, !tbaa !16
  %spec.select = tail call i32 @llvm.umin.i32(i32 %12, i32 %1)
  %13 = getelementptr inbounds i8, ptr %0, i64 88
  store i32 %spec.select, ptr %13, align 8
  %14 = getelementptr inbounds i8, ptr %0, i64 104
  store i32 %spec.select, ptr %14, align 8
  tail call void @__restore_interrupt(i32 noundef %4)
  br label %45

15:                                               ; preds = %3
  store i32 14, ptr %7, align 4, !tbaa !14
  %16 = load ptr, ptr @_tx_thread_execute_ptr, align 8, !tbaa !17
  %17 = getelementptr inbounds i8, ptr %0, i64 88
  %18 = load i32, ptr %17, align 8, !tbaa !18
  %19 = load volatile i32, ptr @_tx_thread_preempt_disable, align 4, !tbaa !13
  %20 = add i32 %19, 3
  store volatile i32 %20, ptr @_tx_thread_preempt_disable, align 4, !tbaa !13
  %21 = getelementptr inbounds i8, ptr %0, i64 100
  store i32 1, ptr %21, align 4, !tbaa !19
  %22 = getelementptr inbounds i8, ptr %0, i64 136
  store i64 0, ptr %22, align 8, !tbaa !20
  tail call void @__restore_interrupt(i32 noundef %4)
  tail call void @_tx_thread_system_suspend(ptr noundef nonnull %0) #4
  store i32 %1, ptr %5, align 8, !tbaa !5
  %23 = getelementptr inbounds i8, ptr %0, i64 284
  store i32 %1, ptr %23, align 4, !tbaa !15
  %24 = getelementptr inbounds i8, ptr %0, i64 288
  %25 = load i32, ptr %24, align 8, !tbaa !16
  %spec.select60 = tail call i32 @llvm.umin.i32(i32 %25, i32 %1)
  store i32 %spec.select60, ptr %17, align 8
  %26 = getelementptr inbounds i8, ptr %0, i64 104
  store i32 %spec.select60, ptr %26, align 8
  tail call void @_tx_thread_system_resume(ptr noundef nonnull %0) #4
  %27 = tail call i32 @__disable_interrupts()
  %28 = load volatile i32, ptr @_tx_thread_preempt_disable, align 4, !tbaa !13
  %29 = add i32 %28, -1
  store volatile i32 %29, ptr @_tx_thread_preempt_disable, align 4, !tbaa !13
  %30 = load ptr, ptr @_tx_thread_execute_ptr, align 8, !tbaa !17
  %.not55 = icmp eq ptr %30, %0
  br i1 %.not55, label %44, label %31

31:                                               ; preds = %15
  %32 = load i32, ptr %7, align 4, !tbaa !14
  %33 = icmp eq i32 %32, 0
  br i1 %33, label %34, label %44

34:                                               ; preds = %31
  %35 = load i32, ptr %17, align 8, !tbaa !18
  %36 = getelementptr inbounds i8, ptr %30, i64 88
  %37 = load i32, ptr %36, align 8, !tbaa !18
  %.not56 = icmp ule i32 %35, %37
  %38 = icmp eq ptr %16, %0
  %or.cond = select i1 %.not56, i1 %38, i1 false
  br i1 %or.cond, label %39, label %44

39:                                               ; preds = %34
  store ptr %0, ptr @_tx_thread_execute_ptr, align 8, !tbaa !17
  %40 = icmp ult i32 %18, %1
  br i1 %40, label %41, label %44

41:                                               ; preds = %39
  %42 = zext i32 %35 to i64
  %43 = getelementptr inbounds [32 x ptr], ptr @_tx_thread_priority_list, i64 0, i64 %42
  store ptr %0, ptr %43, align 8, !tbaa !17
  br label %44

44:                                               ; preds = %31, %41, %39, %34, %15
  tail call void @__restore_interrupt(i32 noundef %27)
  tail call void @_tx_thread_system_preempt_check() #4
  br label %45

45:                                               ; preds = %44, %9
  ret i32 0
}

; Function Attrs: alwaysinline nounwind uwtable
declare hidden i32 @__disable_interrupts() local_unnamed_addr #1

; Function Attrs: alwaysinline nounwind uwtable
declare hidden void @__restore_interrupt(i32 noundef) local_unnamed_addr #1

declare void @_tx_thread_system_suspend(ptr noundef) local_unnamed_addr #2

declare void @_tx_thread_system_resume(ptr noundef) local_unnamed_addr #2

declare void @_tx_thread_system_preempt_check() local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.umin.i32(i32, i32) #3

attributes #0 = { 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 = { alwaysinline 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 280}
!6 = !{!"TX_THREAD_STRUCT", !7, i64 0, !7, i64 8, !10, i64 16, !10, i64 24, !10, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !10, i64 112, !10, i64 120, !7, i64 128, !12, i64 136, !10, i64 192, !10, i64 200, !10, i64 208, !10, i64 216, !7, i64 224, !10, i64 232, !11, i64 240, !11, i64 244, !10, i64 248, !10, i64 256, !10, i64 264, !10, i64 272, !11, i64 280, !11, i64 284, !11, i64 288, !11, i64 292, !10, i64 296, !10, i64 304, !10, i64 312, !7, i64 320}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"TX_TIMER_INTERNAL_STRUCT", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24, !10, i64 32, !10, i64 40, !10, i64 48}
!13 = !{!11, !11, i64 0}
!14 = !{!6, !11, i64 92}
!15 = !{!6, !11, i64 284}
!16 = !{!6, !11, i64 288}
!17 = !{!10, !10, i64 0}
!18 = !{!6, !11, i64 88}
!19 = !{!6, !11, i64 100}
!20 = !{!6, !7, i64 136}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,MergedLoadStoreMotionPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass