; LLVM IR from intel/cryptography-primitives :: sources/ippcp (pcprij128safedec2pxca)

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

; Function Attrs: nounwind uwtable
define dso_local void @Safe2Decrypt_RIJ128(ptr noundef %0, ptr noundef %1, i32 noundef %2, ptr noundef %3, ptr noundef %4) #0 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca [4 x i32], align 16
  %12 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store i32 %2, ptr %8, align 4, !tbaa !9
  store ptr %3, ptr %9, align 8, !tbaa !5
  store ptr %4, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 16, ptr %11) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #3
  store i32 0, ptr %12, align 4, !tbaa !9
  %13 = load ptr, ptr %10, align 8, !tbaa !5
  %14 = load ptr, ptr %6, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %14, i64 0
  %16 = load i8, ptr %15, align 1, !tbaa !11
  %17 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %18 = getelementptr inbounds i8, ptr %17, i64 0
  store i8 %16, ptr %18, align 16, !tbaa !11
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds i8, ptr %19, i64 1
  %21 = load i8, ptr %20, align 1, !tbaa !11
  %22 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %23 = getelementptr inbounds i8, ptr %22, i64 4
  store i8 %21, ptr %23, align 4, !tbaa !11
  %24 = load ptr, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %24, i64 2
  %26 = load i8, ptr %25, align 1, !tbaa !11
  %27 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %28 = getelementptr inbounds i8, ptr %27, i64 8
  store i8 %26, ptr %28, align 8, !tbaa !11
  %29 = load ptr, ptr %6, align 8, !tbaa !5
  %30 = getelementptr inbounds i8, ptr %29, i64 3
  %31 = load i8, ptr %30, align 1, !tbaa !11
  %32 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %33 = getelementptr inbounds i8, ptr %32, i64 12
  store i8 %31, ptr %33, align 4, !tbaa !11
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds i8, ptr %34, i64 4
  %36 = load i8, ptr %35, align 1, !tbaa !11
  %37 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %38 = getelementptr inbounds i8, ptr %37, i64 1
  store i8 %36, ptr %38, align 1, !tbaa !11
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds i8, ptr %39, i64 5
  %41 = load i8, ptr %40, align 1, !tbaa !11
  %42 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %43 = getelementptr inbounds i8, ptr %42, i64 5
  store i8 %41, ptr %43, align 1, !tbaa !11
  %44 = load ptr, ptr %6, align 8, !tbaa !5
  %45 = getelementptr inbounds i8, ptr %44, i64 6
  %46 = load i8, ptr %45, align 1, !tbaa !11
  %47 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %48 = getelementptr inbounds i8, ptr %47, i64 9
  store i8 %46, ptr %48, align 1, !tbaa !11
  %49 = load ptr, ptr %6, align 8, !tbaa !5
  %50 = getelementptr inbounds i8, ptr %49, i64 7
  %51 = load i8, ptr %50, align 1, !tbaa !11
  %52 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %53 = getelementptr inbounds i8, ptr %52, i64 13
  store i8 %51, ptr %53, align 1, !tbaa !11
  %54 = load ptr, ptr %6, align 8, !tbaa !5
  %55 = getelementptr inbounds i8, ptr %54, i64 8
  %56 = load i8, ptr %55, align 1, !tbaa !11
  %57 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %58 = getelementptr inbounds i8, ptr %57, i64 2
  store i8 %56, ptr %58, align 2, !tbaa !11
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = getelementptr inbounds i8, ptr %59, i64 9
  %61 = load i8, ptr %60, align 1, !tbaa !11
  %62 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %63 = getelementptr inbounds i8, ptr %62, i64 6
  store i8 %61, ptr %63, align 2, !tbaa !11
  %64 = load ptr, ptr %6, align 8, !tbaa !5
  %65 = getelementptr inbounds i8, ptr %64, i64 10
  %66 = load i8, ptr %65, align 1, !tbaa !11
  %67 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %68 = getelementptr inbounds i8, ptr %67, i64 10
  store i8 %66, ptr %68, align 2, !tbaa !11
  %69 = load ptr, ptr %6, align 8, !tbaa !5
  %70 = getelementptr inbounds i8, ptr %69, i64 11
  %71 = load i8, ptr %70, align 1, !tbaa !11
  %72 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %73 = getelementptr inbounds i8, ptr %72, i64 14
  store i8 %71, ptr %73, align 2, !tbaa !11
  %74 = load ptr, ptr %6, align 8, !tbaa !5
  %75 = getelementptr inbounds i8, ptr %74, i64 12
  %76 = load i8, ptr %75, align 1, !tbaa !11
  %77 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %78 = getelementptr inbounds i8, ptr %77, i64 3
  store i8 %76, ptr %78, align 1, !tbaa !11
  %79 = load ptr, ptr %6, align 8, !tbaa !5
  %80 = getelementptr inbounds i8, ptr %79, i64 13
  %81 = load i8, ptr %80, align 1, !tbaa !11
  %82 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %83 = getelementptr inbounds i8, ptr %82, i64 7
  store i8 %81, ptr %83, align 1, !tbaa !11
  %84 = load ptr, ptr %6, align 8, !tbaa !5
  %85 = getelementptr inbounds i8, ptr %84, i64 14
  %86 = load i8, ptr %85, align 1, !tbaa !11
  %87 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %88 = getelementptr inbounds i8, ptr %87, i64 11
  store i8 %86, ptr %88, align 1, !tbaa !11
  %89 = load ptr, ptr %6, align 8, !tbaa !5
  %90 = getelementptr inbounds i8, ptr %89, i64 15
  %91 = load i8, ptr %90, align 1, !tbaa !11
  %92 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %93 = getelementptr inbounds i8, ptr %92, i64 15
  store i8 %91, ptr %93, align 1, !tbaa !11
  %94 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %95 = load ptr, ptr %9, align 8, !tbaa !5
  %96 = load i32, ptr %8, align 4, !tbaa !9
  %97 = mul nsw i32 %96, 16
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds i8, ptr %95, i64 %98
  call void @XorRoundKey(ptr noundef %94, ptr noundef %99)
  %100 = load i32, ptr %8, align 4, !tbaa !9
  %101 = sub nsw i32 %100, 1
  store i32 %101, ptr %12, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %115, %5
  %103 = load i32, ptr %12, align 4, !tbaa !9
  %104 = icmp sgt i32 %103, 0
  br i1 %104, label %105, label %118

105:                                              ; preds = %102
  %106 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  call void @invShiftRows(ptr noundef %106)
  %107 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  call void @invSubBytes(ptr noundef %107)
  %108 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %109 = load ptr, ptr %9, align 8, !tbaa !5
  %110 = load i32, ptr %12, align 4, !tbaa !9
  %111 = mul nsw i32 %110, 16
  %112 = sext i32 %111 to i64
  %113 = getelementptr inbounds i8, ptr %109, i64 %112
  call void @XorRoundKey(ptr noundef %108, ptr noundef %113)
  %114 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  call void @invMixColumns(ptr noundef %114)
  br label %115

115:                                              ; preds = %105
  %116 = load i32, ptr %12, align 4, !tbaa !9
  %117 = add nsw i32 %116, -1
  store i32 %117, ptr %12, align 4, !tbaa !9
  br label %102, !llvm.loop !12

118:                                              ; preds = %102
  %119 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  call void @invShiftRows(ptr noundef %119)
  %120 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  call void @invSubBytes(ptr noundef %120)
  %121 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %122 = load ptr, ptr %9, align 8, !tbaa !5
  %123 = getelementptr inbounds i8, ptr %122, i64 0
  call void @XorRoundKey(ptr noundef %121, ptr noundef %123)
  %124 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %125 = getelementptr inbounds i8, ptr %124, i64 0
  %126 = load i8, ptr %125, align 16, !tbaa !11
  %127 = load ptr, ptr %7, align 8, !tbaa !5
  %128 = getelementptr inbounds i8, ptr %127, i64 0
  store i8 %126, ptr %128, align 1, !tbaa !11
  %129 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %130 = getelementptr inbounds i8, ptr %129, i64 1
  %131 = load i8, ptr %130, align 1, !tbaa !11
  %132 = load ptr, ptr %7, align 8, !tbaa !5
  %133 = getelementptr inbounds i8, ptr %132, i64 4
  store i8 %131, ptr %133, align 1, !tbaa !11
  %134 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %135 = getelementptr inbounds i8, ptr %134, i64 2
  %136 = load i8, ptr %135, align 2, !tbaa !11
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = getelementptr inbounds i8, ptr %137, i64 8
  store i8 %136, ptr %138, align 1, !tbaa !11
  %139 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %140 = getelementptr inbounds i8, ptr %139, i64 3
  %141 = load i8, ptr %140, align 1, !tbaa !11
  %142 = load ptr, ptr %7, align 8, !tbaa !5
  %143 = getelementptr inbounds i8, ptr %142, i64 12
  store i8 %141, ptr %143, align 1, !tbaa !11
  %144 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %145 = getelementptr inbounds i8, ptr %144, i64 4
  %146 = load i8, ptr %145, align 4, !tbaa !11
  %147 = load ptr, ptr %7, align 8, !tbaa !5
  %148 = getelementptr inbounds i8, ptr %147, i64 1
  store i8 %146, ptr %148, align 1, !tbaa !11
  %149 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %150 = getelementptr inbounds i8, ptr %149, i64 5
  %151 = load i8, ptr %150, align 1, !tbaa !11
  %152 = load ptr, ptr %7, align 8, !tbaa !5
  %153 = getelementptr inbounds i8, ptr %152, i64 5
  store i8 %151, ptr %153, align 1, !tbaa !11
  %154 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %155 = getelementptr inbounds i8, ptr %154, i64 6
  %156 = load i8, ptr %155, align 2, !tbaa !11
  %157 = load ptr, ptr %7, align 8, !tbaa !5
  %158 = getelementptr inbounds i8, ptr %157, i64 9
  store i8 %156, ptr %158, align 1, !tbaa !11
  %159 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %160 = getelementptr inbounds i8, ptr %159, i64 7
  %161 = load i8, ptr %160, align 1, !tbaa !11
  %162 = load ptr, ptr %7, align 8, !tbaa !5
  %163 = getelementptr inbounds i8, ptr %162, i64 13
  store i8 %161, ptr %163, align 1, !tbaa !11
  %164 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %165 = getelementptr inbounds i8, ptr %164, i64 8
  %166 = load i8, ptr %165, align 8, !tbaa !11
  %167 = load ptr, ptr %7, align 8, !tbaa !5
  %168 = getelementptr inbounds i8, ptr %167, i64 2
  store i8 %166, ptr %168, align 1, !tbaa !11
  %169 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %170 = getelementptr inbounds i8, ptr %169, i64 9
  %171 = load i8, ptr %170, align 1, !tbaa !11
  %172 = load ptr, ptr %7, align 8, !tbaa !5
  %173 = getelementptr inbounds i8, ptr %172, i64 6
  store i8 %171, ptr %173, align 1, !tbaa !11
  %174 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %175 = getelementptr inbounds i8, ptr %174, i64 10
  %176 = load i8, ptr %175, align 2, !tbaa !11
  %177 = load ptr, ptr %7, align 8, !tbaa !5
  %178 = getelementptr inbounds i8, ptr %177, i64 10
  store i8 %176, ptr %178, align 1, !tbaa !11
  %179 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %180 = getelementptr inbounds i8, ptr %179, i64 11
  %181 = load i8, ptr %180, align 1, !tbaa !11
  %182 = load ptr, ptr %7, align 8, !tbaa !5
  %183 = getelementptr inbounds i8, ptr %182, i64 14
  store i8 %181, ptr %183, align 1, !tbaa !11
  %184 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %185 = getelementptr inbounds i8, ptr %184, i64 12
  %186 = load i8, ptr %185, align 4, !tbaa !11
  %187 = load ptr, ptr %7, align 8, !tbaa !5
  %188 = getelementptr inbounds i8, ptr %187, i64 3
  store i8 %186, ptr %188, align 1, !tbaa !11
  %189 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %190 = getelementptr inbounds i8, ptr %189, i64 13
  %191 = load i8, ptr %190, align 1, !tbaa !11
  %192 = load ptr, ptr %7, align 8, !tbaa !5
  %193 = getelementptr inbounds i8, ptr %192, i64 7
  store i8 %191, ptr %193, align 1, !tbaa !11
  %194 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %195 = getelementptr inbounds i8, ptr %194, i64 14
  %196 = load i8, ptr %195, align 2, !tbaa !11
  %197 = load ptr, ptr %7, align 8, !tbaa !5
  %198 = getelementptr inbounds i8, ptr %197, i64 11
  store i8 %196, ptr %198, align 1, !tbaa !11
  %199 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %200 = getelementptr inbounds i8, ptr %199, i64 15
  %201 = load i8, ptr %200, align 1, !tbaa !11
  %202 = load ptr, ptr %7, align 8, !tbaa !5
  %203 = getelementptr inbounds i8, ptr %202, i64 15
  store i8 %201, ptr %203, align 1, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #3
  call void @llvm.lifetime.end.p0(i64 16, ptr %11) #3
  ret void
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @XorRoundKey(ptr noundef, ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @invShiftRows(ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @invSubBytes(ptr noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @invMixColumns(ptr noundef) #2

; 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 = { inlinehint 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 = { 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 = !{!7, !7, i64 0}
!12 = distinct !{!12, !13}
!13 = !{!"llvm.loop.mustprogress"}


; 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 void @Safe2Decrypt_RIJ128(ptr nocapture noundef readonly %0, ptr nocapture noundef writeonly %1, i32 noundef %2, ptr noundef %3, ptr nocapture noundef readnone %4) local_unnamed_addr #0 {
  %6 = alloca [4 x i32], align 16
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %6) #3
  %7 = load <16 x i8>, ptr %0, align 1, !tbaa !5
  %8 = shufflevector <16 x i8> %7, <16 x i8> poison, <16 x i32> <i32 0, i32 4, i32 8, i32 12, i32 1, i32 5, i32 9, i32 13, i32 2, i32 6, i32 10, i32 14, i32 3, i32 7, i32 11, i32 15>
  store <16 x i8> %8, ptr %6, align 16, !tbaa !5
  %9 = shl nsw i32 %2, 4
  %10 = sext i32 %9 to i64
  %11 = getelementptr inbounds i8, ptr %3, i64 %10
  call void @XorRoundKey(ptr noundef nonnull %6, ptr noundef %11)
  %12 = icmp sgt i32 %2, 1
  br i1 %12, label %.lr.ph.preheader, label %._crit_edge

.lr.ph.preheader:                                 ; preds = %5
  %13 = zext nneg i32 %2 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ %13, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  call void @invShiftRows(ptr noundef nonnull %6)
  call void @invSubBytes(ptr noundef nonnull %6)
  %14 = shl nsw i64 %indvars.iv.next, 4
  %15 = getelementptr inbounds i8, ptr %3, i64 %14
  call void @XorRoundKey(ptr noundef nonnull %6, ptr noundef %15)
  call void @invMixColumns(ptr noundef nonnull %6)
  %16 = icmp ugt i64 %indvars.iv, 2
  br i1 %16, label %.lr.ph, label %._crit_edge, !llvm.loop !8

._crit_edge:                                      ; preds = %.lr.ph, %5
  call void @invShiftRows(ptr noundef nonnull %6)
  call void @invSubBytes(ptr noundef nonnull %6)
  call void @XorRoundKey(ptr noundef nonnull %6, ptr noundef %3)
  %17 = load <16 x i8>, ptr %6, align 16, !tbaa !5
  %18 = shufflevector <16 x i8> %17, <16 x i8> poison, <16 x i32> <i32 0, i32 4, i32 8, i32 12, i32 1, i32 5, i32 9, i32 13, i32 2, i32 6, i32 10, i32 14, i32 3, i32 7, i32 11, i32 15>
  store <16 x i8> %18, ptr %1, align 1, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %6) #3
  ret void
}

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @XorRoundKey(ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @invShiftRows(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @invSubBytes(ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @invMixColumns(ptr noundef) local_unnamed_addr #2

; Function Attrs: mustprogress 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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { inlinehint 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 = { 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 = distinct !{!8, !9}
!9 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass