; LLVM IR from square/subzero :: core/external-crypto/modes/ltc (ltc_omac)

; 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.omac_state = type { [1 x %struct.aes_crypt_ctx], [16 x i8], [16 x i8], [2 x [16 x i8]], i32, [12 x i8] }
%struct.aes_crypt_ctx = type { [60 x i32], %union.aes_inf, [12 x i8] }
%union.aes_inf = type { i32 }

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

20:                                               ; preds = %3
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %142

21:                                               ; preds = %3
  %22 = load ptr, ptr %7, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct.omac_state, ptr %22, i32 0, i32 3
  %24 = getelementptr inbounds [2 x [16 x i8]], ptr %23, i64 0, i64 0
  %25 = getelementptr inbounds [16 x i8], ptr %24, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %25, i8 0, i64 16, i1 false)
  %26 = load ptr, ptr %7, align 8, !tbaa !5
  %27 = getelementptr inbounds %struct.omac_state, ptr %26, i32 0, i32 3
  %28 = getelementptr inbounds [2 x [16 x i8]], ptr %27, i64 0, i64 0
  %29 = getelementptr inbounds [16 x i8], ptr %28, i64 0, i64 0
  %30 = load ptr, ptr %7, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.omac_state, ptr %30, i32 0, i32 3
  %32 = getelementptr inbounds [2 x [16 x i8]], ptr %31, i64 0, i64 0
  %33 = getelementptr inbounds [16 x i8], ptr %32, i64 0, i64 0
  %34 = load ptr, ptr %7, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct.omac_state, ptr %34, i32 0, i32 0
  %36 = getelementptr inbounds [1 x %struct.aes_crypt_ctx], ptr %35, i64 0, i64 0
  %37 = call i32 @aes_encrypt(ptr noundef %29, ptr noundef %33, ptr noundef %36)
  %38 = icmp ne i32 %37, 0
  br i1 %38, label %39, label %40

39:                                               ; preds = %21
  store i32 1, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %142

40:                                               ; preds = %21
  store i32 0, ptr %8, align 4, !tbaa !11
  br label %41

41:                                               ; preds = %130, %40
  %42 = load i32, ptr %8, align 4, !tbaa !11
  %43 = icmp slt i32 %42, 2
  br i1 %43, label %44, label %133

44:                                               ; preds = %41
  %45 = load ptr, ptr %7, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.omac_state, ptr %45, i32 0, i32 3
  %47 = load i32, ptr %8, align 4, !tbaa !11
  %48 = sext i32 %47 to i64
  %49 = getelementptr inbounds [2 x [16 x i8]], ptr %46, i64 0, i64 %48
  %50 = getelementptr inbounds [16 x i8], ptr %49, i64 0, i64 0
  %51 = load i8, ptr %50, align 16, !tbaa !13
  %52 = zext i8 %51 to i32
  %53 = ashr i32 %52, 7
  store i32 %53, ptr %10, align 4, !tbaa !11
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %54

54:                                               ; preds = %92, %44
  %55 = load i32, ptr %9, align 4, !tbaa !11
  %56 = icmp slt i32 %55, 15
  br i1 %56, label %57, label %95

57:                                               ; preds = %54
  %58 = load ptr, ptr %7, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.omac_state, ptr %58, i32 0, i32 3
  %60 = load i32, ptr %8, align 4, !tbaa !11
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds [2 x [16 x i8]], ptr %59, i64 0, i64 %61
  %63 = load i32, ptr %9, align 4, !tbaa !11
  %64 = sext i32 %63 to i64
  %65 = getelementptr inbounds [16 x i8], ptr %62, i64 0, i64 %64
  %66 = load i8, ptr %65, align 1, !tbaa !13
  %67 = zext i8 %66 to i32
  %68 = shl i32 %67, 1
  %69 = load ptr, ptr %7, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.omac_state, ptr %69, i32 0, i32 3
  %71 = load i32, ptr %8, align 4, !tbaa !11
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds [2 x [16 x i8]], ptr %70, i64 0, i64 %72
  %74 = load i32, ptr %9, align 4, !tbaa !11
  %75 = add nsw i32 %74, 1
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds [16 x i8], ptr %73, i64 0, i64 %76
  %78 = load i8, ptr %77, align 1, !tbaa !13
  %79 = zext i8 %78 to i32
  %80 = ashr i32 %79, 7
  %81 = or i32 %68, %80
  %82 = and i32 %81, 255
  %83 = trunc i32 %82 to i8
  %84 = load ptr, ptr %7, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.omac_state, ptr %84, i32 0, i32 3
  %86 = load i32, ptr %8, align 4, !tbaa !11
  %87 = sext i32 %86 to i64
  %88 = getelementptr inbounds [2 x [16 x i8]], ptr %85, i64 0, i64 %87
  %89 = load i32, ptr %9, align 4, !tbaa !11
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [16 x i8], ptr %88, i64 0, i64 %90
  store i8 %83, ptr %91, align 1, !tbaa !13
  br label %92

92:                                               ; preds = %57
  %93 = load i32, ptr %9, align 4, !tbaa !11
  %94 = add nsw i32 %93, 1
  store i32 %94, ptr %9, align 4, !tbaa !11
  br label %54, !llvm.loop !14

95:                                               ; preds = %54
  %96 = load ptr, ptr %7, align 8, !tbaa !5
  %97 = getelementptr inbounds %struct.omac_state, ptr %96, i32 0, i32 3
  %98 = load i32, ptr %8, align 4, !tbaa !11
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds [2 x [16 x i8]], ptr %97, i64 0, i64 %99
  %101 = getelementptr inbounds [16 x i8], ptr %100, i64 0, i64 15
  %102 = load i8, ptr %101, align 1, !tbaa !13
  %103 = zext i8 %102 to i32
  %104 = shl i32 %103, 1
  %105 = load i32, ptr %10, align 4, !tbaa !11
  %106 = icmp ne i32 %105, 0
  %107 = zext i1 %106 to i64
  %108 = select i1 %106, i32 135, i32 0
  %109 = xor i32 %104, %108
  %110 = and i32 %109, 255
  %111 = trunc i32 %110 to i8
  %112 = load ptr, ptr %7, align 8, !tbaa !5
  %113 = getelementptr inbounds %struct.omac_state, ptr %112, i32 0, i32 3
  %114 = load i32, ptr %8, align 4, !tbaa !11
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds [2 x [16 x i8]], ptr %113, i64 0, i64 %115
  %117 = getelementptr inbounds [16 x i8], ptr %116, i64 0, i64 15
  store i8 %111, ptr %117, align 1, !tbaa !13
  %118 = load i32, ptr %8, align 4, !tbaa !11
  %119 = icmp eq i32 %118, 0
  br i1 %119, label %120, label %129

120:                                              ; preds = %95
  %121 = load ptr, ptr %7, align 8, !tbaa !5
  %122 = getelementptr inbounds %struct.omac_state, ptr %121, i32 0, i32 3
  %123 = getelementptr inbounds [2 x [16 x i8]], ptr %122, i64 0, i64 1
  %124 = getelementptr inbounds [16 x i8], ptr %123, i64 0, i64 0
  %125 = load ptr, ptr %7, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.omac_state, ptr %125, i32 0, i32 3
  %127 = getelementptr inbounds [2 x [16 x i8]], ptr %126, i64 0, i64 0
  %128 = getelementptr inbounds [16 x i8], ptr %127, i64 0, i64 0
  call void @llvm.memcpy.p0.p0.i64(ptr align 16 %124, ptr align 16 %128, i64 16, i1 false)
  br label %129

129:                                              ; preds = %120, %95
  br label %130

130:                                              ; preds = %129
  %131 = load i32, ptr %8, align 4, !tbaa !11
  %132 = add nsw i32 %131, 1
  store i32 %132, ptr %8, align 4, !tbaa !11
  br label %41, !llvm.loop !16

133:                                              ; preds = %41
  %134 = load ptr, ptr %7, align 8, !tbaa !5
  %135 = getelementptr inbounds %struct.omac_state, ptr %134, i32 0, i32 4
  store i32 0, ptr %135, align 16, !tbaa !17
  %136 = load ptr, ptr %7, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.omac_state, ptr %136, i32 0, i32 2
  %138 = getelementptr inbounds [16 x i8], ptr %137, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %138, i8 0, i64 16, i1 false)
  %139 = load ptr, ptr %7, align 8, !tbaa !5
  %140 = getelementptr inbounds %struct.omac_state, ptr %139, i32 0, i32 1
  %141 = getelementptr inbounds [16 x i8], ptr %140, i64 0, i64 0
  call void @llvm.memset.p0.i64(ptr align 16 %141, i8 0, i64 16, i1 false)
  store i32 0, ptr %4, align 4
  store i32 1, ptr %11, align 4
  br label %142

142:                                              ; preds = %133, %39, %20
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  %143 = load i32, ptr %4, align 4
  ret i32 %143
}

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

declare i32 @aes_encrypt_key(ptr noundef, i32 noundef, ptr noundef) #2

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

declare i32 @aes_encrypt(ptr noundef, ptr noundef, ptr noundef) #2

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #4

; 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 = { "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 nounwind willreturn memory(argmem: write) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = distinct !{!14, !15}
!15 = !{!"llvm.loop.mustprogress"}
!16 = distinct !{!16, !15}
!17 = !{!18, !12, i64 320}
!18 = !{!"", !7, i64 0, !7, i64 256, !7, i64 272, !7, i64 288, !12, i64 320}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @omac_init(ptr noundef %0, i64 noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = trunc i64 %1 to i32
  %5 = tail call i32 @aes_encrypt_key(ptr noundef %0, i32 noundef %4, ptr noundef %2) #5
  %.not = icmp eq i32 %5, 0
  br i1 %.not, label %6, label %59

6:                                                ; preds = %3
  %7 = getelementptr inbounds i8, ptr %2, i64 288
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %7, i8 0, i64 16, i1 false)
  %8 = tail call i32 @aes_encrypt(ptr noundef nonnull %7, ptr noundef nonnull %7, ptr noundef %2) #5
  %.not35 = icmp eq i32 %8, 0
  br i1 %.not35, label %9, label %59

9:                                                ; preds = %6
  %10 = getelementptr inbounds i8, ptr %2, i64 296
  %11 = load <8 x i8>, ptr %7, align 16, !tbaa !5
  %12 = shufflevector <8 x i8> %11, <8 x i8> poison, <8 x i32> <i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 poison>
  %13 = getelementptr inbounds i8, ptr %2, i64 300
  %14 = load i8, ptr %13, align 1, !tbaa !5
  %15 = load <4 x i8>, ptr %10, align 1, !tbaa !5
  %16 = shufflevector <4 x i8> %15, <4 x i8> poison, <8 x i32> <i32 0, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
  %17 = shufflevector <8 x i8> %12, <8 x i8> %16, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 8>
  %18 = tail call <8 x i8> @llvm.fshl.v8i8(<8 x i8> %11, <8 x i8> %17, <8 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>)
  store <8 x i8> %18, ptr %7, align 1, !tbaa !5
  %19 = shufflevector <4 x i8> %15, <4 x i8> poison, <4 x i32> <i32 1, i32 2, i32 3, i32 poison>
  %20 = insertelement <4 x i8> %19, i8 %14, i64 3
  %21 = tail call <4 x i8> @llvm.fshl.v4i8(<4 x i8> %15, <4 x i8> %20, <4 x i8> <i8 1, i8 1, i8 1, i8 1>)
  store <4 x i8> %21, ptr %10, align 1, !tbaa !5
  %22 = getelementptr inbounds i8, ptr %2, i64 301
  %23 = load i8, ptr %22, align 1, !tbaa !5
  %.narrow.12 = tail call i8 @llvm.fshl.i8(i8 %14, i8 %23, i8 1)
  store i8 %.narrow.12, ptr %13, align 1, !tbaa !5
  %24 = getelementptr inbounds i8, ptr %2, i64 302
  %25 = load i8, ptr %24, align 1, !tbaa !5
  %.narrow.13 = tail call i8 @llvm.fshl.i8(i8 %23, i8 %25, i8 1)
  store i8 %.narrow.13, ptr %22, align 1, !tbaa !5
  %26 = getelementptr inbounds i8, ptr %2, i64 303
  %27 = load i8, ptr %26, align 1, !tbaa !5
  %.narrow.14 = tail call i8 @llvm.fshl.i8(i8 %25, i8 %27, i8 1)
  store i8 %.narrow.14, ptr %24, align 1, !tbaa !5
  %28 = shl i8 %27, 1
  %29 = extractelement <8 x i8> %11, i64 0
  %.not36.inv = icmp slt i8 %29, 0
  %30 = select i1 %.not36.inv, i8 -121, i8 0
  %31 = xor i8 %28, %30
  store i8 %31, ptr %26, align 1, !tbaa !5
  %32 = getelementptr inbounds i8, ptr %2, i64 304
  tail call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 16 dereferenceable(16) %32, ptr noundef nonnull align 16 dereferenceable(16) %7, i64 16, i1 false)
  %33 = getelementptr inbounds i8, ptr %2, i64 304
  %34 = getelementptr inbounds i8, ptr %2, i64 312
  %35 = load <8 x i8>, ptr %33, align 16, !tbaa !5
  %36 = shufflevector <8 x i8> %35, <8 x i8> poison, <8 x i32> <i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 poison>
  %37 = getelementptr inbounds i8, ptr %2, i64 316
  %38 = load i8, ptr %37, align 1, !tbaa !5
  %39 = load <4 x i8>, ptr %34, align 1, !tbaa !5
  %40 = shufflevector <4 x i8> %39, <4 x i8> poison, <8 x i32> <i32 0, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison, i32 poison>
  %41 = shufflevector <8 x i8> %36, <8 x i8> %40, <8 x i32> <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 8>
  %42 = tail call <8 x i8> @llvm.fshl.v8i8(<8 x i8> %35, <8 x i8> %41, <8 x i8> <i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1, i8 1>)
  store <8 x i8> %42, ptr %33, align 1, !tbaa !5
  %43 = shufflevector <4 x i8> %39, <4 x i8> poison, <4 x i32> <i32 1, i32 2, i32 3, i32 poison>
  %44 = insertelement <4 x i8> %43, i8 %38, i64 3
  %45 = tail call <4 x i8> @llvm.fshl.v4i8(<4 x i8> %39, <4 x i8> %44, <4 x i8> <i8 1, i8 1, i8 1, i8 1>)
  store <4 x i8> %45, ptr %34, align 1, !tbaa !5
  %46 = getelementptr inbounds i8, ptr %2, i64 317
  %47 = load i8, ptr %46, align 1, !tbaa !5
  %.narrow.12.1 = tail call i8 @llvm.fshl.i8(i8 %38, i8 %47, i8 1)
  store i8 %.narrow.12.1, ptr %37, align 1, !tbaa !5
  %48 = getelementptr inbounds i8, ptr %2, i64 318
  %49 = load i8, ptr %48, align 1, !tbaa !5
  %.narrow.13.1 = tail call i8 @llvm.fshl.i8(i8 %47, i8 %49, i8 1)
  store i8 %.narrow.13.1, ptr %46, align 1, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %2, i64 319
  %51 = load i8, ptr %50, align 1, !tbaa !5
  %.narrow.14.1 = tail call i8 @llvm.fshl.i8(i8 %49, i8 %51, i8 1)
  store i8 %.narrow.14.1, ptr %48, align 1, !tbaa !5
  %52 = getelementptr inbounds i8, ptr %2, i64 319
  %53 = shl i8 %51, 1
  %54 = extractelement <8 x i8> %35, i64 0
  %.not36.inv.1 = icmp slt i8 %54, 0
  %55 = select i1 %.not36.inv.1, i8 -121, i8 0
  %56 = xor i8 %53, %55
  store i8 %56, ptr %52, align 1, !tbaa !5
  %57 = getelementptr inbounds i8, ptr %2, i64 320
  store i32 0, ptr %57, align 16, !tbaa !8
  %58 = getelementptr inbounds i8, ptr %2, i64 256
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 16 dereferenceable(32) %58, i8 0, i64 32, i1 false)
  br label %59

59:                                               ; preds = %6, %3, %9
  %.0 = phi i32 [ 0, %9 ], [ 1, %3 ], [ 1, %6 ]
  ret i32 %.0
}

declare i32 @aes_encrypt_key(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

declare i32 @aes_encrypt(ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #3

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i8 @llvm.fshl.i8(i8, i8, i8) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <8 x i8> @llvm.fshl.v8i8(<8 x i8>, <8 x i8>, <8 x i8>) #4

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare <4 x i8> @llvm.fshl.v4i8(<4 x i8>, <4 x i8>, <4 x i8>) #4

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 = { "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 nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #3 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"omnipotent char", !7, i64 0}
!7 = !{!"Simple C/C++ TBAA"}
!8 = !{!9, !10, i64 320}
!9 = !{!"", !6, i64 0, !6, i64 256, !6, i64 272, !6, i64 288, !10, i64 320}
!10 = !{!"int", !6, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,MemCpyOptPass,SCCPPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass