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

; 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 @Safe2Encrypt_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 = getelementptr inbounds i8, ptr %95, i64 0
  call void @XorRoundKey(ptr noundef %94, ptr noundef %96)
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %97

97:                                               ; preds = %111, %5
  %98 = load i32, ptr %12, align 4, !tbaa !9
  %99 = load i32, ptr %8, align 4, !tbaa !9
  %100 = icmp slt i32 %98, %99
  br i1 %100, label %101, label %114

101:                                              ; preds = %97
  %102 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  call void @SubBytes(ptr noundef %102)
  %103 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  call void @ShiftRows(ptr noundef %103)
  %104 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  call void @MixColumns(ptr noundef %104)
  %105 = getelementptr inbounds [4 x i32], ptr %11, i64 0, i64 0
  %106 = load ptr, ptr %9, align 8, !tbaa !5
  %107 = load i32, ptr %12, align 4, !tbaa !9
  %108 = mul nsw i32 %107, 16
  %109 = sext i32 %108 to i64
  %110 = getelementptr inbounds i8, ptr %106, i64 %109
  call void @XorRoundKey(ptr noundef %105, ptr noundef %110)
  br label %111

111:                                              ; preds = %101
  %112 = load i32, ptr %12, align 4, !tbaa !9
  %113 = add nsw i32 %112, 1
  store i32 %113, ptr %12, align 4, !tbaa !9
  br label %97, !llvm.loop !12

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

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @MixColumns(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 @Safe2Encrypt_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
  call void @XorRoundKey(ptr noundef nonnull %6, ptr noundef %3)
  %9 = icmp sgt i32 %2, 1
  br i1 %9, label %.lr.ph.preheader, label %._crit_edge

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

.lr.ph:                                           ; preds = %.lr.ph.preheader, %.lr.ph
  %indvars.iv = phi i64 [ 1, %.lr.ph.preheader ], [ %indvars.iv.next, %.lr.ph ]
  call void @SubBytes(ptr noundef nonnull %6)
  call void @ShiftRows(ptr noundef nonnull %6)
  call void @MixColumns(ptr noundef nonnull %6)
  %10 = shl nsw i64 %indvars.iv, 4
  %11 = getelementptr inbounds i8, ptr %3, i64 %10
  call void @XorRoundKey(ptr noundef nonnull %6, ptr noundef nonnull %11)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !8

._crit_edge:                                      ; preds = %.lr.ph, %5
  call void @SubBytes(ptr noundef nonnull %6)
  call void @ShiftRows(ptr noundef nonnull %6)
  %12 = shl nsw i32 %2, 4
  %13 = sext i32 %12 to i64
  %14 = getelementptr inbounds i8, ptr %3, i64 %13
  call void @XorRoundKey(ptr noundef nonnull %6, ptr noundef %14)
  %15 = load <16 x i8>, ptr %6, align 16, !tbaa !5
  %16 = shufflevector <16 x i8> %15, <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> %16, 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 @SubBytes(ptr noundef) local_unnamed_addr #2

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @MixColumns(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: EarlyCSEPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass