; LLVM IR from rweather/lightweight-crypto :: src/combined (gascon128)

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

%union.gascon_state_t = type { [5 x i64] }

; Function Attrs: nounwind uwtable
define dso_local i32 @gascon128_aead_decrypt(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %6, ptr noundef %7, ptr noundef %8) #0 {
  %10 = alloca i32, align 4
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i64, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i64, align 8
  %18 = alloca ptr, align 8
  %19 = alloca ptr, align 8
  %20 = alloca %union.gascon_state_t, align 8
  %21 = alloca i32, align 4
  %22 = alloca i64, align 8
  %23 = alloca ptr, align 8
  %24 = alloca ptr, align 8
  %25 = alloca i32, align 4
  %26 = alloca ptr, align 8
  %27 = alloca ptr, align 8
  %28 = alloca i32, align 4
  %29 = alloca ptr, align 8
  %30 = alloca ptr, align 8
  %31 = alloca i32, align 4
  store ptr %0, ptr %11, align 8, !tbaa !5
  store ptr %1, ptr %12, align 8, !tbaa !5
  store ptr %2, ptr %13, align 8, !tbaa !5
  store ptr %3, ptr %14, align 8, !tbaa !5
  store i64 %4, ptr %15, align 8, !tbaa !9
  store ptr %5, ptr %16, align 8, !tbaa !5
  store i64 %6, ptr %17, align 8, !tbaa !9
  store ptr %7, ptr %18, align 8, !tbaa !5
  store ptr %8, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 40, ptr %20) #4
  %32 = load ptr, ptr %13, align 8, !tbaa !5
  %33 = load i64, ptr %15, align 8, !tbaa !9
  %34 = icmp ult i64 %33, 16
  br i1 %34, label %35, label %36

35:                                               ; preds = %9
  store i32 -1, ptr %10, align 4
  store i32 1, ptr %21, align 4
  br label %174

36:                                               ; preds = %9
  %37 = load i64, ptr %15, align 8, !tbaa !9
  %38 = sub i64 %37, 16
  %39 = load ptr, ptr %12, align 8, !tbaa !5
  store i64 %38, ptr %39, align 8, !tbaa !9
  br label %40

40:                                               ; preds = %36
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #4
  store i64 -9205344418435956736, ptr %22, align 8, !tbaa !11
  %41 = load i64, ptr %22, align 8, !tbaa !11
  %42 = trunc i64 %41 to i8
  %43 = getelementptr inbounds [40 x i8], ptr %20, i64 0, i64 0
  store i8 %42, ptr %43, align 8, !tbaa !13
  %44 = load i64, ptr %22, align 8, !tbaa !11
  %45 = lshr i64 %44, 8
  %46 = trunc i64 %45 to i8
  %47 = getelementptr inbounds [40 x i8], ptr %20, i64 0, i64 1
  store i8 %46, ptr %47, align 1, !tbaa !13
  %48 = load i64, ptr %22, align 8, !tbaa !11
  %49 = lshr i64 %48, 16
  %50 = trunc i64 %49 to i8
  %51 = getelementptr inbounds [40 x i8], ptr %20, i64 0, i64 2
  store i8 %50, ptr %51, align 2, !tbaa !13
  %52 = load i64, ptr %22, align 8, !tbaa !11
  %53 = lshr i64 %52, 24
  %54 = trunc i64 %53 to i8
  %55 = getelementptr inbounds [40 x i8], ptr %20, i64 0, i64 3
  store i8 %54, ptr %55, align 1, !tbaa !13
  %56 = load i64, ptr %22, align 8, !tbaa !11
  %57 = lshr i64 %56, 32
  %58 = trunc i64 %57 to i8
  %59 = getelementptr inbounds [40 x i8], ptr %20, i64 0, i64 4
  store i8 %58, ptr %59, align 4, !tbaa !13
  %60 = load i64, ptr %22, align 8, !tbaa !11
  %61 = lshr i64 %60, 40
  %62 = trunc i64 %61 to i8
  %63 = getelementptr inbounds [40 x i8], ptr %20, i64 0, i64 5
  store i8 %62, ptr %63, align 1, !tbaa !13
  %64 = load i64, ptr %22, align 8, !tbaa !11
  %65 = lshr i64 %64, 48
  %66 = trunc i64 %65 to i8
  %67 = getelementptr inbounds [40 x i8], ptr %20, i64 0, i64 6
  store i8 %66, ptr %67, align 2, !tbaa !13
  %68 = load i64, ptr %22, align 8, !tbaa !11
  %69 = lshr i64 %68, 56
  %70 = trunc i64 %69 to i8
  %71 = getelementptr inbounds [40 x i8], ptr %20, i64 0, i64 7
  store i8 %70, ptr %71, align 1, !tbaa !13
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #4
  br label %72

72:                                               ; preds = %40
  br label %73

73:                                               ; preds = %72
  %74 = getelementptr inbounds [40 x i8], ptr %20, i64 0, i64 0
  %75 = getelementptr inbounds i8, ptr %74, i64 8
  %76 = load ptr, ptr %19, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %75, ptr align 1 %76, i64 16, i1 false)
  %77 = getelementptr inbounds [40 x i8], ptr %20, i64 0, i64 0
  %78 = getelementptr inbounds i8, ptr %77, i64 24
  %79 = load ptr, ptr %18, align 8, !tbaa !5
  call void @llvm.memcpy.p0.p0.i64(ptr align 1 %78, ptr align 1 %79, i64 16, i1 false)
  call void @gascon_permute(ptr noundef %20, i8 noundef zeroext 0)
  br label %80

80:                                               ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #4
  %81 = getelementptr inbounds [40 x i8], ptr %20, i64 0, i64 0
  %82 = getelementptr inbounds i8, ptr %81, i64 24
  store ptr %82, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #4
  %83 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %83, ptr %24, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #4
  store i32 16, ptr %25, align 4, !tbaa !14
  br label %84

84:                                               ; preds = %87, %80
  %85 = load i32, ptr %25, align 4, !tbaa !14
  %86 = icmp ugt i32 %85, 0
  br i1 %86, label %87, label %100

87:                                               ; preds = %84
  %88 = load ptr, ptr %24, align 8, !tbaa !5
  %89 = getelementptr inbounds i8, ptr %88, i32 1
  store ptr %89, ptr %24, align 8, !tbaa !5
  %90 = load i8, ptr %88, align 1, !tbaa !13
  %91 = zext i8 %90 to i32
  %92 = load ptr, ptr %23, align 8, !tbaa !5
  %93 = getelementptr inbounds i8, ptr %92, i32 1
  store ptr %93, ptr %23, align 8, !tbaa !5
  %94 = load i8, ptr %92, align 1, !tbaa !13
  %95 = zext i8 %94 to i32
  %96 = xor i32 %95, %91
  %97 = trunc i32 %96 to i8
  store i8 %97, ptr %92, align 1, !tbaa !13
  %98 = load i32, ptr %25, align 4, !tbaa !14
  %99 = add i32 %98, -1
  store i32 %99, ptr %25, align 4, !tbaa !14
  br label %84, !llvm.loop !16

100:                                              ; preds = %84
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #4
  br label %101

101:                                              ; preds = %100
  br label %102

102:                                              ; preds = %101
  %103 = load i64, ptr %17, align 8, !tbaa !9
  %104 = icmp ugt i64 %103, 0
  br i1 %104, label %105, label %108

105:                                              ; preds = %102
  %106 = load ptr, ptr %16, align 8, !tbaa !5
  %107 = load i64, ptr %17, align 8, !tbaa !9
  call void @gascon_absorb_8(ptr noundef %20, ptr noundef %106, i64 noundef %107, i8 noundef zeroext 6)
  br label %108

108:                                              ; preds = %105, %102
  %109 = getelementptr inbounds [40 x i8], ptr %20, i64 0, i64 39
  %110 = load i8, ptr %109, align 1, !tbaa !13
  %111 = zext i8 %110 to i32
  %112 = xor i32 %111, 1
  %113 = trunc i32 %112 to i8
  store i8 %113, ptr %109, align 1, !tbaa !13
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = load ptr, ptr %14, align 8, !tbaa !5
  %116 = load ptr, ptr %12, align 8, !tbaa !5
  %117 = load i64, ptr %116, align 8, !tbaa !9
  call void @gascon_decrypt_8(ptr noundef %20, ptr noundef %114, ptr noundef %115, i64 noundef %117, i8 noundef zeroext 6)
  br label %118

118:                                              ; preds = %108
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #4
  %119 = getelementptr inbounds [40 x i8], ptr %20, i64 0, i64 0
  %120 = getelementptr inbounds i8, ptr %119, i64 8
  store ptr %120, ptr %26, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #4
  %121 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %121, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #4
  store i32 16, ptr %28, align 4, !tbaa !14
  br label %122

122:                                              ; preds = %125, %118
  %123 = load i32, ptr %28, align 4, !tbaa !14
  %124 = icmp ugt i32 %123, 0
  br i1 %124, label %125, label %138

125:                                              ; preds = %122
  %126 = load ptr, ptr %27, align 8, !tbaa !5
  %127 = getelementptr inbounds i8, ptr %126, i32 1
  store ptr %127, ptr %27, align 8, !tbaa !5
  %128 = load i8, ptr %126, align 1, !tbaa !13
  %129 = zext i8 %128 to i32
  %130 = load ptr, ptr %26, align 8, !tbaa !5
  %131 = getelementptr inbounds i8, ptr %130, i32 1
  store ptr %131, ptr %26, align 8, !tbaa !5
  %132 = load i8, ptr %130, align 1, !tbaa !13
  %133 = zext i8 %132 to i32
  %134 = xor i32 %133, %129
  %135 = trunc i32 %134 to i8
  store i8 %135, ptr %130, align 1, !tbaa !13
  %136 = load i32, ptr %28, align 4, !tbaa !14
  %137 = add i32 %136, -1
  store i32 %137, ptr %28, align 4, !tbaa !14
  br label %122, !llvm.loop !18

138:                                              ; preds = %122
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #4
  br label %139

139:                                              ; preds = %138
  br label %140

140:                                              ; preds = %139
  call void @gascon_permute(ptr noundef %20, i8 noundef zeroext 0)
  br label %141

141:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 8, ptr %29) #4
  %142 = getelementptr inbounds [40 x i8], ptr %20, i64 0, i64 0
  %143 = getelementptr inbounds i8, ptr %142, i64 24
  store ptr %143, ptr %29, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %30) #4
  %144 = load ptr, ptr %19, align 8, !tbaa !5
  store ptr %144, ptr %30, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #4
  store i32 16, ptr %31, align 4, !tbaa !14
  br label %145

145:                                              ; preds = %148, %141
  %146 = load i32, ptr %31, align 4, !tbaa !14
  %147 = icmp ugt i32 %146, 0
  br i1 %147, label %148, label %161

148:                                              ; preds = %145
  %149 = load ptr, ptr %30, align 8, !tbaa !5
  %150 = getelementptr inbounds i8, ptr %149, i32 1
  store ptr %150, ptr %30, align 8, !tbaa !5
  %151 = load i8, ptr %149, align 1, !tbaa !13
  %152 = zext i8 %151 to i32
  %153 = load ptr, ptr %29, align 8, !tbaa !5
  %154 = getelementptr inbounds i8, ptr %153, i32 1
  store ptr %154, ptr %29, align 8, !tbaa !5
  %155 = load i8, ptr %153, align 1, !tbaa !13
  %156 = zext i8 %155 to i32
  %157 = xor i32 %156, %152
  %158 = trunc i32 %157 to i8
  store i8 %158, ptr %153, align 1, !tbaa !13
  %159 = load i32, ptr %31, align 4, !tbaa !14
  %160 = add i32 %159, -1
  store i32 %160, ptr %31, align 4, !tbaa !14
  br label %145, !llvm.loop !19

161:                                              ; preds = %145
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %30) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %29) #4
  br label %162

162:                                              ; preds = %161
  br label %163

163:                                              ; preds = %162
  %164 = load ptr, ptr %11, align 8, !tbaa !5
  %165 = load ptr, ptr %12, align 8, !tbaa !5
  %166 = load i64, ptr %165, align 8, !tbaa !9
  %167 = getelementptr inbounds [40 x i8], ptr %20, i64 0, i64 0
  %168 = getelementptr inbounds i8, ptr %167, i64 24
  %169 = load ptr, ptr %14, align 8, !tbaa !5
  %170 = load ptr, ptr %12, align 8, !tbaa !5
  %171 = load i64, ptr %170, align 8, !tbaa !9
  %172 = getelementptr inbounds i8, ptr %169, i64 %171
  %173 = call i32 @aead_check_tag(ptr noundef %164, i64 noundef %166, ptr noundef %168, ptr noundef %172, i32 noundef 16)
  store i32 %173, ptr %10, align 4
  store i32 1, ptr %21, align 4
  br label %174

174:                                              ; preds = %163, %35
  call void @llvm.lifetime.end.p0(i64 40, ptr %20) #4
  %175 = load i32, ptr %10, align 4
  ret i32 %175
}

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

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

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

declare void @gascon_permute(ptr noundef, i8 noundef zeroext) #3

; Function Attrs: nounwind uwtable
declare hidden void @gascon_absorb_8(ptr noundef, ptr noundef, i64 noundef, i8 noundef zeroext) #0

; Function Attrs: nounwind uwtable
declare hidden void @gascon_decrypt_8(ptr noundef, ptr noundef, ptr noundef, i64 noundef, i8 noundef zeroext) #0

declare i32 @aead_check_tag(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i32 noundef) #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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"long long", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!7, !7, i64 0}
!14 = !{!15, !15, i64 0}
!15 = !{!"int", !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = distinct !{!19, !17}


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

%union.gascon_state_t = type { [5 x i64] }

; Function Attrs: nounwind uwtable
define dso_local i32 @gascon128_aead_decrypt(ptr noundef %0, ptr nocapture noundef %1, ptr nocapture noundef readnone %2, ptr noundef %3, i64 noundef %4, ptr noundef %5, i64 noundef %6, ptr nocapture noundef readonly %7, ptr nocapture noundef readonly %8) local_unnamed_addr #0 {
  %10 = alloca %union.gascon_state_t, align 8
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %10) #4
  %11 = icmp ult i64 %4, 16
  br i1 %11, label %36, label %12

12:                                               ; preds = %9
  %13 = add i64 %4, -16
  store i64 %13, ptr %1, align 8, !tbaa !5
  %14 = getelementptr inbounds i8, ptr %10, i64 4
  store i32 0, ptr %10, align 8
  store <4 x i8> <i8 6, i8 12, i8 64, i8 -128>, ptr %14, align 4, !tbaa !9
  %15 = getelementptr inbounds i8, ptr %10, i64 8
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %15, ptr noundef nonnull align 1 dereferenceable(16) %8, i64 16, i1 false)
  %16 = getelementptr inbounds i8, ptr %10, i64 24
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %16, ptr noundef nonnull align 1 dereferenceable(16) %7, i64 16, i1 false)
  call void @gascon_permute(ptr noundef nonnull %10, i8 noundef zeroext 0) #4
  %17 = load <16 x i8>, ptr %8, align 1, !tbaa !9
  %18 = load <16 x i8>, ptr %16, align 8, !tbaa !9
  %19 = xor <16 x i8> %18, %17
  store <16 x i8> %19, ptr %16, align 8, !tbaa !9
  %.not50 = icmp eq i64 %6, 0
  %20 = extractelement <16 x i8> %19, i64 15
  br i1 %.not50, label %22, label %21

21:                                               ; preds = %12
  call void @gascon_absorb_8(ptr noundef nonnull %10, ptr noundef %5, i64 noundef %6, i8 noundef zeroext 6)
  %.phi.trans.insert = getelementptr inbounds i8, ptr %10, i64 39
  %.pre = load i8, ptr %.phi.trans.insert, align 1, !tbaa !9
  br label %22

22:                                               ; preds = %21, %12
  %23 = phi i8 [ %.pre, %21 ], [ %20, %12 ]
  %24 = getelementptr inbounds i8, ptr %10, i64 39
  %25 = xor i8 %23, 1
  store i8 %25, ptr %24, align 1, !tbaa !9
  %26 = load i64, ptr %1, align 8, !tbaa !5
  call void @gascon_decrypt_8(ptr noundef nonnull %10, ptr noundef %0, ptr noundef %3, i64 noundef %26, i8 noundef zeroext 6)
  %27 = load <16 x i8>, ptr %8, align 1, !tbaa !9
  %28 = load <16 x i8>, ptr %15, align 8, !tbaa !9
  %29 = xor <16 x i8> %28, %27
  store <16 x i8> %29, ptr %15, align 8, !tbaa !9
  call void @gascon_permute(ptr noundef nonnull %10, i8 noundef zeroext 0) #4
  %30 = load <16 x i8>, ptr %8, align 1, !tbaa !9
  %31 = load <16 x i8>, ptr %16, align 8, !tbaa !9
  %32 = xor <16 x i8> %31, %30
  store <16 x i8> %32, ptr %16, align 8, !tbaa !9
  %33 = load i64, ptr %1, align 8, !tbaa !5
  %34 = getelementptr inbounds i8, ptr %3, i64 %33
  %35 = call i32 @aead_check_tag(ptr noundef %0, i64 noundef %33, ptr noundef nonnull %16, ptr noundef %34, i32 noundef 16) #4
  br label %36

36:                                               ; preds = %9, %22
  %.047 = phi i32 [ %35, %22 ], [ -1, %9 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %10) #4
  ret i32 %.047
}

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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) #2

declare void @gascon_permute(ptr noundef, i8 noundef zeroext) local_unnamed_addr #3

; Function Attrs: nounwind uwtable
declare hidden void @gascon_absorb_8(ptr noundef, ptr noundef, i64 noundef, i8 noundef zeroext) local_unnamed_addr #0

; Function Attrs: nounwind uwtable
declare hidden void @gascon_decrypt_8(ptr noundef, ptr noundef, ptr noundef, i64 noundef, i8 noundef zeroext) local_unnamed_addr #0

declare i32 @aead_check_tag(ptr noundef, i64 noundef, ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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 = !{!"long long", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,LoopRotatePass,MemCpyOptPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass