; LLVM IR from jgaeddert/liquid-dsp :: src/fec/src (packetizer)

; 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.packetizer_s = type { i32, i32, i32, i32, ptr, i32, i32, ptr, ptr }
%struct.fecintlv_plan = type { i32, i32, i32, ptr, ptr }

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #1

; Function Attrs: nounwind uwtable
define dso_local i32 @packetizer_decode(ptr noundef %0, ptr noundef %1, ptr noundef %2) #2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = 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
  %9 = load ptr, ptr %4, align 8, !tbaa !5
  %10 = getelementptr inbounds %struct.packetizer_s, ptr %9, i32 0, i32 7
  %11 = load ptr, ptr %10, align 8, !tbaa !9
  %12 = load ptr, ptr %5, align 8, !tbaa !5
  %13 = load ptr, ptr %4, align 8, !tbaa !5
  %14 = getelementptr inbounds %struct.packetizer_s, ptr %13, i32 0, i32 1
  %15 = load i32, ptr %14, align 4, !tbaa !12
  %16 = zext i32 %15 to i64
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %11, ptr align 1 %12, i64 %16, i1 false)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #4
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.packetizer_s, ptr %17, i32 0, i32 5
  %19 = load i32, ptr %18, align 8, !tbaa !13
  store i32 %19, ptr %7, align 4, !tbaa !14
  br label %20

20:                                               ; preds = %65, %3
  %21 = load i32, ptr %7, align 4, !tbaa !14
  %22 = icmp ugt i32 %21, 0
  br i1 %22, label %23, label %68

23:                                               ; preds = %20
  %24 = load ptr, ptr %4, align 8, !tbaa !5
  %25 = getelementptr inbounds %struct.packetizer_s, ptr %24, i32 0, i32 4
  %26 = load ptr, ptr %25, align 8, !tbaa !15
  %27 = load i32, ptr %7, align 4, !tbaa !14
  %28 = sub i32 %27, 1
  %29 = zext i32 %28 to i64
  %30 = getelementptr inbounds %struct.fecintlv_plan, ptr %26, i64 %29
  %31 = getelementptr inbounds %struct.fecintlv_plan, ptr %30, i32 0, i32 4
  %32 = load ptr, ptr %31, align 8, !tbaa !16
  %33 = load ptr, ptr %4, align 8, !tbaa !5
  %34 = getelementptr inbounds %struct.packetizer_s, ptr %33, i32 0, i32 7
  %35 = load ptr, ptr %34, align 8, !tbaa !9
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = getelementptr inbounds %struct.packetizer_s, ptr %36, i32 0, i32 8
  %38 = load ptr, ptr %37, align 8, !tbaa !18
  %39 = call i32 @interleaver_decode(ptr noundef %32, ptr noundef %35, ptr noundef %38)
  %40 = load ptr, ptr %4, align 8, !tbaa !5
  %41 = getelementptr inbounds %struct.packetizer_s, ptr %40, i32 0, i32 4
  %42 = load ptr, ptr %41, align 8, !tbaa !15
  %43 = load i32, ptr %7, align 4, !tbaa !14
  %44 = sub i32 %43, 1
  %45 = zext i32 %44 to i64
  %46 = getelementptr inbounds %struct.fecintlv_plan, ptr %42, i64 %45
  %47 = getelementptr inbounds %struct.fecintlv_plan, ptr %46, i32 0, i32 3
  %48 = load ptr, ptr %47, align 8, !tbaa !19
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = getelementptr inbounds %struct.packetizer_s, ptr %49, i32 0, i32 4
  %51 = load ptr, ptr %50, align 8, !tbaa !15
  %52 = load i32, ptr %7, align 4, !tbaa !14
  %53 = sub i32 %52, 1
  %54 = zext i32 %53 to i64
  %55 = getelementptr inbounds %struct.fecintlv_plan, ptr %51, i64 %54
  %56 = getelementptr inbounds %struct.fecintlv_plan, ptr %55, i32 0, i32 0
  %57 = load i32, ptr %56, align 8, !tbaa !20
  %58 = load ptr, ptr %4, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.packetizer_s, ptr %58, i32 0, i32 8
  %60 = load ptr, ptr %59, align 8, !tbaa !18
  %61 = load ptr, ptr %4, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.packetizer_s, ptr %61, i32 0, i32 7
  %63 = load ptr, ptr %62, align 8, !tbaa !9
  %64 = call i32 @fec_decode(ptr noundef %48, i32 noundef %57, ptr noundef %60, ptr noundef %63)
  br label %65

65:                                               ; preds = %23
  %66 = load i32, ptr %7, align 4, !tbaa !14
  %67 = add i32 %66, -1
  store i32 %67, ptr %7, align 4, !tbaa !14
  br label %20, !llvm.loop !21

68:                                               ; preds = %20
  %69 = load ptr, ptr %4, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.packetizer_s, ptr %69, i32 0, i32 7
  %71 = load ptr, ptr %70, align 8, !tbaa !9
  %72 = load ptr, ptr %4, align 8, !tbaa !5
  %73 = getelementptr inbounds %struct.packetizer_s, ptr %72, i32 0, i32 0
  %74 = load i32, ptr %73, align 8, !tbaa !23
  %75 = load ptr, ptr %4, align 8, !tbaa !5
  %76 = getelementptr inbounds %struct.packetizer_s, ptr %75, i32 0, i32 3
  %77 = load i32, ptr %76, align 4, !tbaa !24
  %78 = add i32 %74, %77
  call void @unscramble_data(ptr noundef %71, i32 noundef %78)
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #4
  store i32 0, ptr %8, align 4, !tbaa !14
  store i32 0, ptr %7, align 4, !tbaa !14
  br label %79

79:                                               ; preds = %102, %68
  %80 = load i32, ptr %7, align 4, !tbaa !14
  %81 = load ptr, ptr %4, align 8, !tbaa !5
  %82 = getelementptr inbounds %struct.packetizer_s, ptr %81, i32 0, i32 3
  %83 = load i32, ptr %82, align 4, !tbaa !24
  %84 = icmp ult i32 %80, %83
  br i1 %84, label %85, label %105

85:                                               ; preds = %79
  %86 = load i32, ptr %8, align 4, !tbaa !14
  %87 = shl i32 %86, 8
  store i32 %87, ptr %8, align 4, !tbaa !14
  %88 = load ptr, ptr %4, align 8, !tbaa !5
  %89 = getelementptr inbounds %struct.packetizer_s, ptr %88, i32 0, i32 7
  %90 = load ptr, ptr %89, align 8, !tbaa !9
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = getelementptr inbounds %struct.packetizer_s, ptr %91, i32 0, i32 0
  %93 = load i32, ptr %92, align 8, !tbaa !23
  %94 = load i32, ptr %7, align 4, !tbaa !14
  %95 = add i32 %93, %94
  %96 = zext i32 %95 to i64
  %97 = getelementptr inbounds i8, ptr %90, i64 %96
  %98 = load i8, ptr %97, align 1, !tbaa !25
  %99 = zext i8 %98 to i32
  %100 = load i32, ptr %8, align 4, !tbaa !14
  %101 = or i32 %100, %99
  store i32 %101, ptr %8, align 4, !tbaa !14
  br label %102

102:                                              ; preds = %85
  %103 = load i32, ptr %7, align 4, !tbaa !14
  %104 = add i32 %103, 1
  store i32 %104, ptr %7, align 4, !tbaa !14
  br label %79, !llvm.loop !26

105:                                              ; preds = %79
  %106 = load ptr, ptr %6, align 8, !tbaa !5
  %107 = load ptr, ptr %4, align 8, !tbaa !5
  %108 = getelementptr inbounds %struct.packetizer_s, ptr %107, i32 0, i32 7
  %109 = load ptr, ptr %108, align 8, !tbaa !9
  %110 = load ptr, ptr %4, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.packetizer_s, ptr %110, i32 0, i32 0
  %112 = load i32, ptr %111, align 8, !tbaa !23
  %113 = zext i32 %112 to i64
  call void @llvm.memmove.p0.p0.i64(ptr align 1 %106, ptr align 1 %109, i64 %113, i1 false)
  %114 = load ptr, ptr %4, align 8, !tbaa !5
  %115 = getelementptr inbounds %struct.packetizer_s, ptr %114, i32 0, i32 2
  %116 = load i32, ptr %115, align 8, !tbaa !27
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = getelementptr inbounds %struct.packetizer_s, ptr %117, i32 0, i32 7
  %119 = load ptr, ptr %118, align 8, !tbaa !9
  %120 = load ptr, ptr %4, align 8, !tbaa !5
  %121 = getelementptr inbounds %struct.packetizer_s, ptr %120, i32 0, i32 0
  %122 = load i32, ptr %121, align 8, !tbaa !23
  %123 = load i32, ptr %8, align 4, !tbaa !14
  %124 = call i32 @crc_validate_message(i32 noundef %116, ptr noundef %119, i32 noundef %122, i32 noundef %123)
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #4
  ret i32 %124
}

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

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

declare void @unscramble_data(ptr noundef, i32 noundef) #3

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

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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, !6, i64 32}
!10 = !{!"packetizer_s", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !6, i64 16, !11, i64 24, !11, i64 28, !6, i64 32, !6, i64 40}
!11 = !{!"int", !7, i64 0}
!12 = !{!10, !11, i64 4}
!13 = !{!10, !11, i64 24}
!14 = !{!11, !11, i64 0}
!15 = !{!10, !6, i64 16}
!16 = !{!17, !6, i64 24}
!17 = !{!"fecintlv_plan", !11, i64 0, !11, i64 4, !11, i64 8, !6, i64 16, !6, i64 24}
!18 = !{!10, !6, i64 40}
!19 = !{!17, !6, i64 16}
!20 = !{!17, !11, i64 0}
!21 = distinct !{!21, !22}
!22 = !{!"llvm.loop.mustprogress"}
!23 = !{!10, !11, i64 0}
!24 = !{!10, !11, i64 12}
!25 = !{!7, !7, i64 0}
!26 = distinct !{!26, !22}
!27 = !{!10, !11, i64 8}


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

%struct.fecintlv_plan = type { i32, i32, i32, ptr, ptr }

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memmove.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1 immarg) #0

; Function Attrs: nounwind uwtable
define dso_local i32 @packetizer_decode(ptr nocapture noundef readonly %0, ptr nocapture noundef readonly %1, ptr nocapture noundef writeonly %2) local_unnamed_addr #1 {
  %4 = getelementptr inbounds i8, ptr %0, i64 32
  %5 = load ptr, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 4
  %7 = load i32, ptr %6, align 4, !tbaa !11
  %8 = zext i32 %7 to i64
  tail call void @llvm.memmove.p0.p0.i64(ptr align 1 %5, ptr align 1 %1, i64 %8, i1 false)
  %9 = getelementptr inbounds i8, ptr %0, i64 24
  %10 = load i32, ptr %9, align 8, !tbaa !12
  %.not34 = icmp eq i32 %10, 0
  br i1 %.not34, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %11 = getelementptr inbounds i8, ptr %0, i64 16
  %12 = getelementptr inbounds i8, ptr %0, i64 40
  %13 = zext i32 %10 to i64
  br label %14

14:                                               ; preds = %.lr.ph, %14
  %indvars.iv = phi i64 [ %13, %.lr.ph ], [ %16, %14 ]
  %15 = load ptr, ptr %11, align 8, !tbaa !13
  %16 = add nsw i64 %indvars.iv, -1
  %17 = getelementptr inbounds %struct.fecintlv_plan, ptr %15, i64 %16, i32 4
  %18 = load ptr, ptr %17, align 8, !tbaa !14
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = load ptr, ptr %12, align 8, !tbaa !16
  %21 = tail call i32 @interleaver_decode(ptr noundef %18, ptr noundef %19, ptr noundef %20) #3
  %22 = load ptr, ptr %11, align 8, !tbaa !13
  %23 = getelementptr inbounds %struct.fecintlv_plan, ptr %22, i64 %16
  %24 = getelementptr inbounds i8, ptr %23, i64 16
  %25 = load ptr, ptr %24, align 8, !tbaa !17
  %26 = load i32, ptr %23, align 8, !tbaa !18
  %27 = load ptr, ptr %12, align 8, !tbaa !16
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = tail call i32 @fec_decode(ptr noundef %25, i32 noundef %26, ptr noundef %27, ptr noundef %28) #3
  %.not.wide = icmp eq i64 %16, 0
  br i1 %.not.wide, label %._crit_edge, label %14, !llvm.loop !19

._crit_edge:                                      ; preds = %14, %3
  %30 = load ptr, ptr %4, align 8, !tbaa !5
  %31 = load i32, ptr %0, align 8, !tbaa !21
  %32 = getelementptr inbounds i8, ptr %0, i64 12
  %33 = load i32, ptr %32, align 4, !tbaa !22
  %34 = add i32 %33, %31
  tail call void @unscramble_data(ptr noundef %30, i32 noundef %34) #3
  %35 = load i32, ptr %32, align 4, !tbaa !22
  %.not41 = icmp eq i32 %35, 0
  %.pre = load ptr, ptr %4, align 8, !tbaa !5
  %.pre46 = load i32, ptr %0, align 8, !tbaa !21
  br i1 %.not41, label %._crit_edge40, label %.lr.ph39

.lr.ph39:                                         ; preds = %._crit_edge
  %wide.trip.count = zext i32 %35 to i64
  %xtraiter = and i64 %wide.trip.count, 3
  %36 = icmp ult i32 %35, 4
  br i1 %36, label %._crit_edge40.loopexit.unr-lcssa, label %.lr.ph39.new

.lr.ph39.new:                                     ; preds = %.lr.ph39
  %unroll_iter = and i64 %wide.trip.count, 4294967292
  br label %37

37:                                               ; preds = %37, %.lr.ph39.new
  %indvars.iv43 = phi i64 [ 0, %.lr.ph39.new ], [ %indvars.iv.next44.3, %37 ]
  %niter = phi i64 [ 0, %.lr.ph39.new ], [ %niter.next.3, %37 ]
  %indvars.iv.next44.3 = add nuw nsw i64 %indvars.iv43, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge40.loopexit.unr-lcssa.loopexit, label %37, !llvm.loop !23

._crit_edge40.loopexit.unr-lcssa.loopexit:        ; preds = %37
  %38 = trunc nuw i64 %indvars.iv43 to i32
  %39 = add i32 %.pre46, %38
  %40 = zext i32 %39 to i64
  %41 = getelementptr inbounds i8, ptr %.pre, i64 %40
  %42 = load i8, ptr %41, align 1, !tbaa !24
  %43 = zext i8 %42 to i32
  %44 = shl nuw nsw i32 %43, 16
  %45 = trunc i64 %indvars.iv43 to i32
  %46 = or disjoint i32 %45, 1
  %47 = add i32 %.pre46, %46
  %48 = zext i32 %47 to i64
  %49 = getelementptr inbounds i8, ptr %.pre, i64 %48
  %50 = load i8, ptr %49, align 1, !tbaa !24
  %51 = zext i8 %50 to i32
  %52 = shl nuw nsw i32 %51, 8
  %53 = or disjoint i32 %44, %52
  %54 = trunc i64 %indvars.iv43 to i32
  %55 = or disjoint i32 %54, 2
  %56 = add i32 %.pre46, %55
  %57 = zext i32 %56 to i64
  %58 = getelementptr inbounds i8, ptr %.pre, i64 %57
  %59 = load i8, ptr %58, align 1, !tbaa !24
  %60 = zext i8 %59 to i32
  %61 = or disjoint i32 %53, %60
  %62 = shl nuw i32 %61, 8
  %63 = trunc i64 %indvars.iv43 to i32
  %64 = or disjoint i32 %63, 3
  %65 = add i32 %.pre46, %64
  %66 = zext i32 %65 to i64
  %67 = getelementptr inbounds i8, ptr %.pre, i64 %66
  %68 = load i8, ptr %67, align 1, !tbaa !24
  %69 = zext i8 %68 to i32
  %70 = or disjoint i32 %62, %69
  br label %._crit_edge40.loopexit.unr-lcssa

._crit_edge40.loopexit.unr-lcssa:                 ; preds = %._crit_edge40.loopexit.unr-lcssa.loopexit, %.lr.ph39
  %.lcssa.ph = phi i32 [ poison, %.lr.ph39 ], [ %70, %._crit_edge40.loopexit.unr-lcssa.loopexit ]
  %indvars.iv43.unr = phi i64 [ 0, %.lr.ph39 ], [ %indvars.iv.next44.3, %._crit_edge40.loopexit.unr-lcssa.loopexit ]
  %.037.unr = phi i32 [ 0, %.lr.ph39 ], [ %70, %._crit_edge40.loopexit.unr-lcssa.loopexit ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge40, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge40.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv43.epil = phi i64 [ %indvars.iv.next44.epil, %.epil.preheader ], [ %indvars.iv43.unr, %._crit_edge40.loopexit.unr-lcssa ]
  %.037.epil = phi i32 [ %78, %.epil.preheader ], [ %.037.unr, %._crit_edge40.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge40.loopexit.unr-lcssa ]
  %71 = shl i32 %.037.epil, 8
  %72 = trunc nuw i64 %indvars.iv43.epil to i32
  %73 = add i32 %.pre46, %72
  %74 = zext i32 %73 to i64
  %75 = getelementptr inbounds i8, ptr %.pre, i64 %74
  %76 = load i8, ptr %75, align 1, !tbaa !24
  %77 = zext i8 %76 to i32
  %78 = or disjoint i32 %71, %77
  %indvars.iv.next44.epil = add nuw nsw i64 %indvars.iv43.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge40, label %.epil.preheader, !llvm.loop !25

._crit_edge40:                                    ; preds = %._crit_edge40.loopexit.unr-lcssa, %.epil.preheader, %._crit_edge
  %.0.lcssa = phi i32 [ 0, %._crit_edge ], [ %.lcssa.ph, %._crit_edge40.loopexit.unr-lcssa ], [ %78, %.epil.preheader ]
  %79 = zext i32 %.pre46 to i64
  tail call void @llvm.memmove.p0.p0.i64(ptr align 1 %2, ptr align 1 %.pre, i64 %79, i1 false)
  %80 = getelementptr inbounds i8, ptr %0, i64 8
  %81 = load i32, ptr %80, align 8, !tbaa !27
  %82 = load ptr, ptr %4, align 8, !tbaa !5
  %83 = load i32, ptr %0, align 8, !tbaa !21
  %84 = tail call i32 @crc_validate_message(i32 noundef %81, ptr noundef %82, i32 noundef %83, i32 noundef %.0.lcssa) #3
  ret i32 %84
}

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

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

declare void @unscramble_data(ptr noundef, i32 noundef) local_unnamed_addr #2

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

attributes #0 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { 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 32}
!6 = !{!"packetizer_s", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !7, i64 24, !7, i64 28, !10, i64 32, !10, i64 40}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"any pointer", !8, i64 0}
!11 = !{!6, !7, i64 4}
!12 = !{!6, !7, i64 24}
!13 = !{!6, !10, i64 16}
!14 = !{!15, !10, i64 24}
!15 = !{!"fecintlv_plan", !7, i64 0, !7, i64 4, !7, i64 8, !10, i64 16, !10, i64 24}
!16 = !{!6, !10, i64 40}
!17 = !{!15, !10, i64 16}
!18 = !{!15, !7, i64 0}
!19 = distinct !{!19, !20}
!20 = !{!"llvm.loop.mustprogress"}
!21 = !{!6, !7, i64 0}
!22 = !{!6, !7, i64 12}
!23 = distinct !{!23, !20}
!24 = !{!8, !8, i64 0}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.unroll.disable"}
!27 = !{!6, !7, i64 8}


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