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

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

; Function Attrs: nounwind uwtable
define dso_local i32 @ippsGFpSetElementOctString(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca i32, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  %19 = load ptr, ptr %8, align 8, !tbaa !5
  %20 = icmp eq ptr null, %19
  br i1 %20, label %21, label %22

21:                                               ; preds = %4
  store i32 -8, ptr %5, align 4
  br label %160

22:                                               ; preds = %4
  %23 = load ptr, ptr %9, align 8, !tbaa !5
  %24 = icmp eq ptr null, %23
  br i1 %24, label %25, label %26

25:                                               ; preds = %22
  store i32 -8, ptr %5, align 4
  br label %160

26:                                               ; preds = %22
  %27 = load ptr, ptr %9, align 8, !tbaa !5
  %28 = getelementptr inbounds %struct._cpGFp, ptr %27, i32 0, i32 0
  %29 = load i32, ptr %28, align 8, !tbaa !11
  %30 = load ptr, ptr %9, align 8, !tbaa !5
  %31 = call i64 @IPP_UINT_PTR(ptr noundef %30)
  %32 = trunc i64 %31 to i32
  %33 = xor i32 %29, %32
  %34 = icmp eq i32 %33, 1129136455
  br i1 %34, label %36, label %35

35:                                               ; preds = %26
  store i32 -13, ptr %5, align 4
  br label %160

36:                                               ; preds = %26
  %37 = load ptr, ptr %8, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct._cpGFpElement, ptr %37, i32 0, i32 0
  %39 = load i32, ptr %38, align 8, !tbaa !13
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = call i64 @IPP_UINT_PTR(ptr noundef %40)
  %42 = trunc i64 %41 to i32
  %43 = xor i32 %39, %42
  %44 = icmp eq i32 %43, 1129136456
  br i1 %44, label %46, label %45

45:                                               ; preds = %36
  store i32 -13, ptr %5, align 4
  br label %160

46:                                               ; preds = %36
  %47 = load ptr, ptr %6, align 8, !tbaa !5
  %48 = icmp ne ptr %47, null
  br i1 %48, label %53, label %49

49:                                               ; preds = %46
  %50 = load i32, ptr %7, align 4, !tbaa !9
  %51 = icmp slt i32 0, %50
  br i1 %51, label %52, label %53

52:                                               ; preds = %49
  store i32 -8, ptr %5, align 4
  br label %160

53:                                               ; preds = %49, %46
  %54 = load i32, ptr %7, align 4, !tbaa !9
  %55 = icmp slt i32 0, %54
  br i1 %55, label %56, label %65

56:                                               ; preds = %53
  %57 = load i32, ptr %7, align 4, !tbaa !9
  %58 = load ptr, ptr %9, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct._cpGFp, ptr %58, i32 0, i32 2
  %60 = load ptr, ptr %59, align 8, !tbaa !15
  %61 = getelementptr inbounds %struct._gsModEngine, ptr %60, i32 0, i32 4
  %62 = load i32, ptr %61, align 4, !tbaa !16
  %63 = mul nsw i32 %62, 4
  %64 = icmp sle i32 %57, %63
  br i1 %64, label %66, label %65

65:                                               ; preds = %56, %53
  store i32 -6, ptr %5, align 4
  br label %160

66:                                               ; preds = %56
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = getelementptr inbounds %struct._cpGFpElement, ptr %67, i32 0, i32 1
  %69 = load i32, ptr %68, align 4, !tbaa !19
  %70 = load ptr, ptr %9, align 8, !tbaa !5
  %71 = getelementptr inbounds %struct._cpGFp, ptr %70, i32 0, i32 2
  %72 = load ptr, ptr %71, align 8, !tbaa !15
  %73 = getelementptr inbounds %struct._gsModEngine, ptr %72, i32 0, i32 3
  %74 = load i32, ptr %73, align 8, !tbaa !20
  %75 = icmp ne i32 %69, %74
  br i1 %75, label %76, label %77

76:                                               ; preds = %66
  store i32 -11, ptr %5, align 4
  br label %160

77:                                               ; preds = %66
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #4
  %78 = load ptr, ptr %9, align 8, !tbaa !5
  %79 = getelementptr inbounds %struct._cpGFp, ptr %78, i32 0, i32 2
  %80 = load ptr, ptr %79, align 8, !tbaa !15
  store ptr %80, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #4
  %81 = load ptr, ptr %10, align 8, !tbaa !5
  %82 = call ptr @cpGFpBasic(ptr noundef %81)
  store ptr %82, ptr %11, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #4
  %83 = load ptr, ptr %10, align 8, !tbaa !5
  %84 = call i32 @cpGFpBasicDegreeExtension(ptr noundef %83)
  store i32 %84, ptr %12, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #4
  %85 = load ptr, ptr %11, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct._gsModEngine, ptr %85, i32 0, i32 3
  %87 = load i32, ptr %86, align 8, !tbaa !20
  store i32 %87, ptr %13, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #4
  %88 = load ptr, ptr %11, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct._gsModEngine, ptr %88, i32 0, i32 3
  %90 = load i32, ptr %89, align 8, !tbaa !20
  %91 = mul nsw i32 %90, 64
  %92 = load ptr, ptr %11, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct._gsModEngine, ptr %92, i32 0, i32 8
  %94 = load ptr, ptr %93, align 8, !tbaa !21
  %95 = load ptr, ptr %11, align 8, !tbaa !5
  %96 = getelementptr inbounds %struct._gsModEngine, ptr %95, i32 0, i32 3
  %97 = load i32, ptr %96, align 8, !tbaa !20
  %98 = sub nsw i32 %97, 1
  %99 = sext i32 %98 to i64
  %100 = getelementptr inbounds i64, ptr %94, i64 %99
  %101 = load i64, ptr %100, align 8, !tbaa !22
  %102 = call i32 @cpNLZ_BNU(i64 noundef %101)
  %103 = sub nsw i32 %91, %102
  %104 = add nsw i32 %103, 7
  %105 = ashr i32 %104, 3
  store i32 %105, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #4
  %106 = load ptr, ptr %8, align 8, !tbaa !5
  %107 = getelementptr inbounds %struct._cpGFpElement, ptr %106, i32 0, i32 2
  %108 = load ptr, ptr %107, align 8, !tbaa !23
  store ptr %108, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #4
  %109 = load ptr, ptr %15, align 8, !tbaa !5
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct._gsModEngine, ptr %110, i32 0, i32 3
  %112 = load i32, ptr %111, align 8, !tbaa !20
  %113 = call ptr @cpGFpElementPad(ptr noundef %109, i32 noundef %112, i64 noundef 0)
  store i32 0, ptr %16, align 4, !tbaa !9
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %114

114:                                              ; preds = %152, %77
  %115 = load i32, ptr %16, align 4, !tbaa !9
  %116 = load i32, ptr %12, align 4, !tbaa !9
  %117 = icmp slt i32 %115, %116
  br i1 %117, label %118, label %122

118:                                              ; preds = %114
  %119 = load i32, ptr %17, align 4, !tbaa !9
  %120 = icmp ne i32 %119, 0
  %121 = xor i1 %120, true
  br label %122

122:                                              ; preds = %118, %114
  %123 = phi i1 [ false, %114 ], [ %121, %118 ]
  br i1 %123, label %124, label %155

124:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #4
  %125 = load i32, ptr %7, align 4, !tbaa !9
  %126 = load i32, ptr %14, align 4, !tbaa !9
  %127 = icmp slt i32 %125, %126
  br i1 %127, label %128, label %130

128:                                              ; preds = %124
  %129 = load i32, ptr %7, align 4, !tbaa !9
  br label %132

130:                                              ; preds = %124
  %131 = load i32, ptr %14, align 4, !tbaa !9
  br label %132

132:                                              ; preds = %130, %128
  %133 = phi i32 [ %129, %128 ], [ %131, %130 ]
  store i32 %133, ptr %18, align 4, !tbaa !9
  %134 = load ptr, ptr %15, align 8, !tbaa !5
  %135 = load ptr, ptr %6, align 8, !tbaa !5
  %136 = load i32, ptr %18, align 4, !tbaa !9
  %137 = load ptr, ptr %11, align 8, !tbaa !5
  %138 = call ptr @cpGFpSetOctString(ptr noundef %134, ptr noundef %135, i32 noundef %136, ptr noundef %137)
  %139 = icmp eq ptr null, %138
  %140 = zext i1 %139 to i32
  store i32 %140, ptr %17, align 4, !tbaa !9
  %141 = load i32, ptr %13, align 4, !tbaa !9
  %142 = load ptr, ptr %15, align 8, !tbaa !5
  %143 = sext i32 %141 to i64
  %144 = getelementptr inbounds i64, ptr %142, i64 %143
  store ptr %144, ptr %15, align 8, !tbaa !5
  %145 = load i32, ptr %18, align 4, !tbaa !9
  %146 = load i32, ptr %7, align 4, !tbaa !9
  %147 = sub nsw i32 %146, %145
  store i32 %147, ptr %7, align 4, !tbaa !9
  %148 = load i32, ptr %18, align 4, !tbaa !9
  %149 = load ptr, ptr %6, align 8, !tbaa !5
  %150 = sext i32 %148 to i64
  %151 = getelementptr inbounds i8, ptr %149, i64 %150
  store ptr %151, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #4
  br label %152

152:                                              ; preds = %132
  %153 = load i32, ptr %16, align 4, !tbaa !9
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %16, align 4, !tbaa !9
  br label %114, !llvm.loop !24

155:                                              ; preds = %122
  %156 = load i32, ptr %17, align 4, !tbaa !9
  %157 = icmp ne i32 %156, 0
  %158 = zext i1 %157 to i64
  %159 = select i1 %157, i32 -11, i32 0
  store i32 %159, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, 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 4, ptr %14) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #4
  br label %160

160:                                              ; preds = %155, %76, %65, %52, %45, %35, %25, %21
  %161 = load i32, ptr %5, align 4
  ret i32 %161
}

; Function Attrs: inlinehint nounwind uwtable
declare hidden i64 @IPP_UINT_PTR(ptr noundef) #1

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

; Function Attrs: inlinehint nounwind uwtable
declare hidden ptr @cpGFpBasic(ptr noundef) #1

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

declare i32 @cpNLZ_BNU(i64 noundef) #3

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

declare ptr @cpGFpSetOctString(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #3

; Function Attrs: nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #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 = { 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 = { nocallback nofree nosync 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 = !{!"int", !7, i64 0}
!11 = !{!12, !10, i64 0}
!12 = !{!"_cpGFp", !10, i64 0, !10, i64 4, !6, i64 8}
!13 = !{!14, !10, i64 0}
!14 = !{!"_cpGFpElement", !10, i64 0, !10, i64 4, !6, i64 8}
!15 = !{!12, !6, i64 8}
!16 = !{!17, !10, i64 20}
!17 = !{!"_gsModEngine", !6, i64 0, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !6, i64 32, !6, i64 40, !6, i64 48, !18, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !10, i64 96, !10, i64 100, !6, i64 104}
!18 = !{!"long long", !7, i64 0}
!19 = !{!14, !10, i64 4}
!20 = !{!17, !10, i64 16}
!21 = !{!17, !6, i64 48}
!22 = !{!18, !18, i64 0}
!23 = !{!14, !6, i64 8}
!24 = distinct !{!24, !25}
!25 = !{!"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 range(i32 -13, 1) i32 @ippsGFpSetElementOctString(ptr noundef %0, i32 noundef %1, ptr noundef %2, ptr noundef %3) local_unnamed_addr #0 {
  %5 = icmp eq ptr %2, null
  %6 = icmp eq ptr %3, null
  %or.cond53 = or i1 %5, %6
  br i1 %or.cond53, label %._crit_edge, label %7

7:                                                ; preds = %4
  %8 = load i32, ptr %3, align 8, !tbaa !5
  %9 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %3)
  %10 = trunc i64 %9 to i32
  %11 = xor i32 %8, %10
  %12 = icmp eq i32 %11, 1129136455
  br i1 %12, label %13, label %._crit_edge

13:                                               ; preds = %7
  %14 = load i32, ptr %2, align 8, !tbaa !11
  %15 = tail call i64 @IPP_UINT_PTR(ptr noundef nonnull %2)
  %16 = trunc i64 %15 to i32
  %17 = xor i32 %14, %16
  %18 = icmp eq i32 %17, 1129136456
  br i1 %18, label %19, label %._crit_edge

19:                                               ; preds = %13
  %20 = icmp eq ptr %0, null
  %21 = icmp sgt i32 %1, 0
  %or.cond = and i1 %20, %21
  %.not54 = xor i1 %21, true
  %brmerge = or i1 %20, %.not54
  %.mux = select i1 %or.cond, i32 -8, i32 -6
  br i1 %brmerge, label %._crit_edge, label %22

22:                                               ; preds = %19
  %23 = getelementptr inbounds i8, ptr %3, i64 8
  %24 = load ptr, ptr %23, align 8, !tbaa !13
  %25 = getelementptr inbounds i8, ptr %24, i64 20
  %26 = load i32, ptr %25, align 4, !tbaa !14
  %27 = shl nsw i32 %26, 2
  %.not = icmp slt i32 %27, %1
  br i1 %.not, label %._crit_edge, label %28

28:                                               ; preds = %22
  %29 = getelementptr inbounds i8, ptr %2, i64 4
  %30 = load i32, ptr %29, align 4, !tbaa !17
  %31 = getelementptr inbounds i8, ptr %24, i64 16
  %32 = load i32, ptr %31, align 8, !tbaa !18
  %.not51 = icmp eq i32 %30, %32
  br i1 %.not51, label %33, label %._crit_edge

33:                                               ; preds = %28
  %34 = tail call ptr @cpGFpBasic(ptr noundef nonnull %24)
  %35 = tail call i32 @cpGFpBasicDegreeExtension(ptr noundef nonnull %24)
  %36 = getelementptr inbounds i8, ptr %34, i64 16
  %37 = load i32, ptr %36, align 8, !tbaa !18
  %38 = shl nsw i32 %37, 6
  %39 = getelementptr inbounds i8, ptr %34, i64 48
  %40 = load ptr, ptr %39, align 8, !tbaa !19
  %41 = sext i32 %37 to i64
  %42 = getelementptr i64, ptr %40, i64 %41
  %43 = getelementptr i8, ptr %42, i64 -8
  %44 = load i64, ptr %43, align 8, !tbaa !20
  %45 = tail call i32 @cpNLZ_BNU(i64 noundef %44) #4
  %46 = or disjoint i32 %38, 7
  %47 = sub i32 %46, %45
  %48 = ashr i32 %47, 3
  %49 = getelementptr inbounds i8, ptr %2, i64 8
  %50 = load ptr, ptr %49, align 8, !tbaa !21
  %51 = load i32, ptr %31, align 8, !tbaa !18
  %52 = tail call ptr @cpGFpElementPad(ptr noundef %50, i32 noundef %51, i64 noundef 0)
  %53 = icmp sgt i32 %35, 0
  br i1 %53, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %33, %.lr.ph
  %.04458 = phi i32 [ %61, %.lr.ph ], [ 0, %33 ]
  %.04557 = phi ptr [ %57, %.lr.ph ], [ %50, %33 ]
  %.04656 = phi ptr [ %60, %.lr.ph ], [ %0, %33 ]
  %.04755 = phi i32 [ %58, %.lr.ph ], [ %1, %33 ]
  %54 = tail call i32 @llvm.smin.i32(i32 %.04755, i32 %48)
  %55 = tail call ptr @cpGFpSetOctString(ptr noundef %.04557, ptr noundef %.04656, i32 noundef %54, ptr noundef %34) #4
  %56 = icmp ne ptr %55, null
  %57 = getelementptr inbounds i64, ptr %.04557, i64 %41
  %58 = sub nsw i32 %.04755, %54
  %59 = sext i32 %54 to i64
  %60 = getelementptr inbounds i8, ptr %.04656, i64 %59
  %61 = add nuw nsw i32 %.04458, 1
  %62 = icmp slt i32 %61, %35
  %63 = select i1 %62, i1 %56, i1 false
  br i1 %63, label %.lr.ph, label %._crit_edge.loopexit, !llvm.loop !22

._crit_edge.loopexit:                             ; preds = %.lr.ph
  %64 = select i1 %56, i32 0, i32 -11
  br label %._crit_edge

._crit_edge:                                      ; preds = %33, %._crit_edge.loopexit, %19, %28, %22, %13, %7, %4
  %.0 = phi i32 [ -8, %4 ], [ -13, %7 ], [ -13, %13 ], [ %.mux, %19 ], [ -6, %22 ], [ -11, %28 ], [ 0, %33 ], [ %64, %._crit_edge.loopexit ]
  ret i32 %.0
}

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

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

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

declare i32 @cpNLZ_BNU(i64 noundef) local_unnamed_addr #2

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

declare ptr @cpGFpSetOctString(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smin.i32(i32, i32) #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 = { 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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !7, i64 0}
!6 = !{!"_cpGFp", !7, i64 0, !7, i64 4, !10, i64 8}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!12, !7, i64 0}
!12 = !{!"_cpGFpElement", !7, i64 0, !7, i64 4, !10, i64 8}
!13 = !{!6, !10, i64 8}
!14 = !{!15, !7, i64 20}
!15 = !{!"_gsModEngine", !10, i64 0, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !10, i64 32, !10, i64 40, !10, i64 48, !16, i64 56, !10, i64 64, !10, i64 72, !10, i64 80, !10, i64 88, !7, i64 96, !7, i64 100, !10, i64 104}
!16 = !{!"long long", !8, i64 0}
!17 = !{!12, !7, i64 4}
!18 = !{!15, !7, i64 16}
!19 = !{!15, !10, i64 48}
!20 = !{!16, !16, i64 0}
!21 = !{!12, !10, i64 8}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass