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

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

; Function Attrs: nounwind uwtable
define dso_local ptr @cpGFpxSqr_com(ptr noundef %0, ptr noundef %1, ptr noundef %2) #0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %19 = load ptr, ptr %6, align 8, !tbaa !5
  %20 = getelementptr inbounds %struct._gsModEngine, ptr %19, i32 0, i32 1
  %21 = load i32, ptr %20, align 8, !tbaa !9
  store i32 %21, ptr %7, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %22 = load ptr, ptr %6, align 8, !tbaa !5
  %23 = getelementptr inbounds %struct._gsModEngine, ptr %22, i32 0, i32 8
  %24 = load ptr, ptr %23, align 8, !tbaa !14
  store ptr %24, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #4
  %25 = load i32, ptr %7, align 4, !tbaa !13
  %26 = sub nsw i32 %25, 1
  store i32 %26, ptr %9, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #4
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct._gsModEngine, ptr %27, i32 0, i32 3
  %29 = load i32, ptr %28, align 8, !tbaa !15
  store i32 %29, ptr %10, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  %30 = load i32, ptr %9, align 4, !tbaa !13
  store i32 %30, ptr %11, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #4
  %31 = load ptr, ptr %6, align 8, !tbaa !5
  %32 = call ptr @gsModPoolAlloc(ptr noundef %31, i32 noundef 2)
  store ptr %32, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #4
  %33 = load ptr, ptr %12, align 8, !tbaa !5
  %34 = load ptr, ptr %6, align 8, !tbaa !5
  %35 = getelementptr inbounds %struct._gsModEngine, ptr %34, i32 0, i32 5
  %36 = load i32, ptr %35, align 8, !tbaa !16
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds i64, ptr %33, i64 %37
  store ptr %38, ptr %13, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #4
  %39 = load ptr, ptr %6, align 8, !tbaa !5
  %40 = getelementptr inbounds %struct._gsModEngine, ptr %39, i32 0, i32 0
  %41 = load ptr, ptr %40, align 8, !tbaa !17
  store ptr %41, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %42 = load ptr, ptr %14, align 8, !tbaa !5
  %43 = call ptr @gsModPoolAlloc(ptr noundef %42, i32 noundef 1)
  store ptr %43, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  %44 = load ptr, ptr %14, align 8, !tbaa !5
  %45 = getelementptr inbounds %struct._gsModEngine, ptr %44, i32 0, i32 3
  %46 = load i32, ptr %45, align 8, !tbaa !15
  store i32 %46, ptr %16, align 4, !tbaa !13
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #4
  %47 = load ptr, ptr %5, align 8, !tbaa !5
  %48 = load i32, ptr %16, align 4, !tbaa !13
  %49 = load i32, ptr %11, align 4, !tbaa !13
  %50 = mul nsw i32 %48, %49
  %51 = sext i32 %50 to i64
  %52 = getelementptr inbounds i64, ptr %47, i64 %51
  store ptr %52, ptr %17, align 8, !tbaa !5
  %53 = load ptr, ptr %12, align 8, !tbaa !5
  %54 = load i32, ptr %10, align 4, !tbaa !13
  %55 = call ptr @cpGFpElementPad(ptr noundef %53, i32 noundef %54, i64 noundef 0)
  %56 = load ptr, ptr %13, align 8, !tbaa !5
  %57 = load ptr, ptr %5, align 8, !tbaa !5
  %58 = load ptr, ptr %17, align 8, !tbaa !5
  %59 = load ptr, ptr %6, align 8, !tbaa !5
  %60 = call ptr @cpGFpxMul_GFE(ptr noundef %56, ptr noundef %57, ptr noundef %58, ptr noundef %59)
  %61 = load i32, ptr %11, align 4, !tbaa !13
  %62 = sub nsw i32 %61, 1
  store i32 %62, ptr %11, align 4, !tbaa !13
  br label %63

63:                                               ; preds = %138, %3
  %64 = load i32, ptr %11, align 4, !tbaa !13
  %65 = icmp sge i32 %64, 0
  br i1 %65, label %66, label %141

66:                                               ; preds = %63
  %67 = load ptr, ptr %15, align 8, !tbaa !5
  %68 = load ptr, ptr %13, align 8, !tbaa !5
  %69 = load i32, ptr %16, align 4, !tbaa !13
  %70 = load i32, ptr %9, align 4, !tbaa !13
  %71 = mul nsw i32 %69, %70
  %72 = sext i32 %71 to i64
  %73 = getelementptr inbounds i64, ptr %68, i64 %72
  %74 = load i32, ptr %16, align 4, !tbaa !13
  %75 = call ptr @cpGFpElementCopy(ptr noundef %67, ptr noundef %73, i32 noundef %74)
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %76 = load i32, ptr %9, align 4, !tbaa !13
  store i32 %76, ptr %18, align 4, !tbaa !13
  br label %77

77:                                               ; preds = %96, %66
  %78 = load i32, ptr %18, align 4, !tbaa !13
  %79 = icmp sge i32 %78, 1
  br i1 %79, label %80, label %99

80:                                               ; preds = %77
  %81 = load ptr, ptr %13, align 8, !tbaa !5
  %82 = load i32, ptr %16, align 4, !tbaa !13
  %83 = load i32, ptr %18, align 4, !tbaa !13
  %84 = mul nsw i32 %82, %83
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds i64, ptr %81, i64 %85
  %87 = load ptr, ptr %13, align 8, !tbaa !5
  %88 = load i32, ptr %16, align 4, !tbaa !13
  %89 = load i32, ptr %18, align 4, !tbaa !13
  %90 = sub nsw i32 %89, 1
  %91 = mul nsw i32 %88, %90
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds i64, ptr %87, i64 %92
  %94 = load i32, ptr %16, align 4, !tbaa !13
  %95 = call ptr @cpGFpElementCopy(ptr noundef %86, ptr noundef %93, i32 noundef %94)
  br label %96

96:                                               ; preds = %80
  %97 = load i32, ptr %18, align 4, !tbaa !13
  %98 = add nsw i32 %97, -1
  store i32 %98, ptr %18, align 4, !tbaa !13
  br label %77, !llvm.loop !18

99:                                               ; preds = %77
  %100 = load ptr, ptr %13, align 8, !tbaa !5
  %101 = load i32, ptr %16, align 4, !tbaa !13
  %102 = call ptr @cpGFpElementPad(ptr noundef %100, i32 noundef %101, i64 noundef 0)
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  %103 = load ptr, ptr %12, align 8, !tbaa !5
  %104 = load ptr, ptr %8, align 8, !tbaa !5
  %105 = load ptr, ptr %15, align 8, !tbaa !5
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = call ptr @cpGFpxMul_GFE(ptr noundef %103, ptr noundef %104, ptr noundef %105, ptr noundef %106)
  %108 = load ptr, ptr %6, align 8, !tbaa !5
  %109 = getelementptr inbounds %struct._gsModEngine, ptr %108, i32 0, i32 6
  %110 = load ptr, ptr %109, align 8, !tbaa !20
  %111 = getelementptr inbounds %struct._gsModMethod, ptr %110, i32 0, i32 6
  %112 = load ptr, ptr %111, align 8, !tbaa !21
  %113 = load ptr, ptr %13, align 8, !tbaa !5
  %114 = load ptr, ptr %13, align 8, !tbaa !5
  %115 = load ptr, ptr %12, align 8, !tbaa !5
  %116 = load ptr, ptr %6, align 8, !tbaa !5
  %117 = call ptr %112(ptr noundef %113, ptr noundef %114, ptr noundef %115, ptr noundef %116)
  %118 = load i32, ptr %16, align 4, !tbaa !13
  %119 = load ptr, ptr %17, align 8, !tbaa !5
  %120 = sext i32 %118 to i64
  %121 = sub i64 0, %120
  %122 = getelementptr inbounds i64, ptr %119, i64 %121
  store ptr %122, ptr %17, align 8, !tbaa !5
  %123 = load ptr, ptr %12, align 8, !tbaa !5
  %124 = load ptr, ptr %5, align 8, !tbaa !5
  %125 = load ptr, ptr %17, align 8, !tbaa !5
  %126 = load ptr, ptr %6, align 8, !tbaa !5
  %127 = call ptr @cpGFpxMul_GFE(ptr noundef %123, ptr noundef %124, ptr noundef %125, ptr noundef %126)
  %128 = load ptr, ptr %6, align 8, !tbaa !5
  %129 = getelementptr inbounds %struct._gsModEngine, ptr %128, i32 0, i32 6
  %130 = load ptr, ptr %129, align 8, !tbaa !20
  %131 = getelementptr inbounds %struct._gsModMethod, ptr %130, i32 0, i32 5
  %132 = load ptr, ptr %131, align 8, !tbaa !23
  %133 = load ptr, ptr %13, align 8, !tbaa !5
  %134 = load ptr, ptr %13, align 8, !tbaa !5
  %135 = load ptr, ptr %12, align 8, !tbaa !5
  %136 = load ptr, ptr %6, align 8, !tbaa !5
  %137 = call ptr %132(ptr noundef %133, ptr noundef %134, ptr noundef %135, ptr noundef %136)
  br label %138

138:                                              ; preds = %99
  %139 = load i32, ptr %11, align 4, !tbaa !13
  %140 = add nsw i32 %139, -1
  store i32 %140, ptr %11, align 4, !tbaa !13
  br label %63, !llvm.loop !24

141:                                              ; preds = %63
  %142 = load ptr, ptr %4, align 8, !tbaa !5
  %143 = load ptr, ptr %13, align 8, !tbaa !5
  %144 = load i32, ptr %10, align 4, !tbaa !13
  %145 = call ptr @cpGFpElementCopy(ptr noundef %142, ptr noundef %143, i32 noundef %144)
  %146 = load ptr, ptr %14, align 8, !tbaa !5
  call void @gsModPoolFree(ptr noundef %146, i32 noundef 1)
  %147 = load ptr, ptr %6, align 8, !tbaa !5
  call void @gsModPoolFree(ptr noundef %147, i32 noundef 2)
  %148 = load ptr, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #4
  call void @llvm.lifetime.end.p0(i64 4, 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 ptr %148
}

; 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 ptr @gsModPoolAlloc(ptr noundef, i32 noundef) #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @cpGFpElementPad(ptr noundef, i32 noundef, i64 noundef) #2

declare ptr @cpGFpxMul_GFE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #3

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

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

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

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 = { "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, !11, i64 8}
!10 = !{!"_gsModEngine", !6, i64 0, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !12, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !11, i64 96, !11, i64 100, !6, i64 104}
!11 = !{!"int", !7, i64 0}
!12 = !{!"long long", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!10, !6, i64 48}
!15 = !{!10, !11, i64 16}
!16 = !{!10, !11, i64 24}
!17 = !{!10, !6, i64 0}
!18 = distinct !{!18, !19}
!19 = !{!"llvm.loop.mustprogress"}
!20 = !{!10, !6, i64 32}
!21 = !{!22, !6, i64 48}
!22 = !{!"_gsModMethod", !6, i64 0, !6, i64 8, !6, i64 16, !6, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80}
!23 = !{!22, !6, i64 40}
!24 = distinct !{!24, !19}


; 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 noundef ptr @cpGFpxSqr_com(ptr noundef returned %0, ptr noundef %1, ptr noundef %2) local_unnamed_addr #0 {
  %4 = getelementptr inbounds i8, ptr %2, i64 8
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %2, i64 48
  %7 = load ptr, ptr %6, align 8, !tbaa !12
  %8 = add nsw i32 %5, -1
  %9 = getelementptr inbounds i8, ptr %2, i64 16
  %10 = load i32, ptr %9, align 8, !tbaa !13
  %11 = tail call ptr @gsModPoolAlloc(ptr noundef %2, i32 noundef 2)
  %12 = getelementptr inbounds i8, ptr %2, i64 24
  %13 = load i32, ptr %12, align 8, !tbaa !14
  %14 = sext i32 %13 to i64
  %15 = getelementptr inbounds i64, ptr %11, i64 %14
  %16 = load ptr, ptr %2, align 8, !tbaa !15
  %17 = tail call ptr @gsModPoolAlloc(ptr noundef %16, i32 noundef 1)
  %18 = getelementptr inbounds i8, ptr %16, i64 16
  %19 = load i32, ptr %18, align 8, !tbaa !13
  %20 = mul nsw i32 %19, %8
  %21 = sext i32 %20 to i64
  %22 = getelementptr inbounds i64, ptr %1, i64 %21
  %23 = tail call ptr @cpGFpElementPad(ptr noundef %11, i32 noundef %10, i64 noundef 0)
  %24 = tail call ptr @cpGFpxMul_GFE(ptr noundef %15, ptr noundef %1, ptr noundef %22, ptr noundef nonnull %2) #3
  %25 = icmp sgt i32 %5, 1
  br i1 %25, label %.lr.ph.us.preheader, label %._crit_edge72

.lr.ph.us.preheader:                              ; preds = %3
  %26 = getelementptr inbounds i64, ptr %15, i64 %21
  %27 = getelementptr inbounds i8, ptr %2, i64 32
  %28 = sext i32 %19 to i64
  %29 = sub nsw i64 0, %28
  %30 = add nsw i32 %5, -2
  %31 = zext nneg i32 %5 to i64
  %32 = add nsw i64 %31, -1
  br label %.lr.ph.us

.lr.ph.us:                                        ; preds = %.lr.ph.us.preheader, %._crit_edge.us
  %.06569.us = phi ptr [ %47, %._crit_edge.us ], [ %22, %.lr.ph.us.preheader ]
  %.06668.us = phi i32 [ %53, %._crit_edge.us ], [ %30, %.lr.ph.us.preheader ]
  %33 = tail call ptr @cpGFpElementCopy(ptr noundef %17, ptr noundef %26, i32 noundef %19)
  br label %34

34:                                               ; preds = %.lr.ph.us, %34
  %indvars.iv = phi i64 [ %32, %.lr.ph.us ], [ %indvars.iv.next, %34 ]
  %35 = mul nsw i64 %indvars.iv, %28
  %36 = getelementptr inbounds i64, ptr %15, i64 %35
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %37 = mul nsw i64 %indvars.iv.next, %28
  %38 = getelementptr inbounds i64, ptr %15, i64 %37
  %39 = tail call ptr @cpGFpElementCopy(ptr noundef %36, ptr noundef %38, i32 noundef %19)
  %40 = icmp sgt i64 %indvars.iv, 1
  br i1 %40, label %34, label %._crit_edge.us, !llvm.loop !16

._crit_edge.us:                                   ; preds = %34
  %41 = tail call ptr @cpGFpElementPad(ptr noundef %15, i32 noundef %19, i64 noundef 0)
  %42 = tail call ptr @cpGFpxMul_GFE(ptr noundef %11, ptr noundef %7, ptr noundef %17, ptr noundef nonnull %2) #3
  %43 = load ptr, ptr %27, align 8, !tbaa !18
  %44 = getelementptr inbounds i8, ptr %43, i64 48
  %45 = load ptr, ptr %44, align 8, !tbaa !19
  %46 = tail call ptr %45(ptr noundef %15, ptr noundef %15, ptr noundef %11, ptr noundef nonnull %2) #3
  %47 = getelementptr inbounds i64, ptr %.06569.us, i64 %29
  %48 = tail call ptr @cpGFpxMul_GFE(ptr noundef %11, ptr noundef %1, ptr noundef %47, ptr noundef nonnull %2) #3
  %49 = load ptr, ptr %27, align 8, !tbaa !18
  %50 = getelementptr inbounds i8, ptr %49, i64 40
  %51 = load ptr, ptr %50, align 8, !tbaa !21
  %52 = tail call ptr %51(ptr noundef %15, ptr noundef %15, ptr noundef %11, ptr noundef nonnull %2) #3
  %53 = add nsw i32 %.06668.us, -1
  %54 = icmp sgt i32 %.06668.us, 0
  br i1 %54, label %.lr.ph.us, label %._crit_edge72, !llvm.loop !22

._crit_edge72:                                    ; preds = %._crit_edge.us, %3
  %55 = tail call ptr @cpGFpElementCopy(ptr noundef %0, ptr noundef %15, i32 noundef %10)
  tail call void @gsModPoolFree(ptr noundef %16, i32 noundef 1)
  tail call void @gsModPoolFree(ptr noundef nonnull %2, i32 noundef 2)
  ret ptr %0
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @gsModPoolAlloc(ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @cpGFpElementPad(ptr noundef, i32 noundef, i64 noundef) local_unnamed_addr #1

declare ptr @cpGFpxMul_GFE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @cpGFpElementCopy(ptr noundef, ptr noundef, i32 noundef) local_unnamed_addr #1

; Function Attrs: inlinehint nounwind uwtable
declare hidden void @gsModPoolFree(ptr noundef, i32 noundef) local_unnamed_addr #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 = { 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 #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 = { 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, !10, i64 8}
!6 = !{!"_gsModEngine", !7, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !11, i64 56, !7, i64 64, !7, i64 72, !7, i64 80, !7, i64 88, !10, i64 96, !10, i64 100, !7, i64 104}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"long long", !8, i64 0}
!12 = !{!6, !7, i64 48}
!13 = !{!6, !10, i64 16}
!14 = !{!6, !10, i64 24}
!15 = !{!6, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = !{!6, !7, i64 32}
!19 = !{!20, !7, i64 48}
!20 = !{!"_gsModMethod", !7, i64 0, !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !7, i64 56, !7, i64 64, !7, i64 72, !7, i64 80}
!21 = !{!20, !7, i64 40}
!22 = distinct !{!22, !17}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass